xendit / xendit-php

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms
https://developers.xendit.co/api-reference/
MIT License
152 stars 76 forks source link

Invalid Value for Enum '\Xendit\Invoice\BankCode' #211

Closed IMYELI closed 11 months ago

IMYELI commented 11 months ago

I got this error message when I tried to create an invoice. image

I tried doing as instructed in this readme file https://github.com/xendit/xendit-php/blob/master/docs/Invoice/InvoiceApi.md#createInvoice

here is my code image

I tried tracking where it went wrong using dd() and I found out that it is in line 212 of InvoiceApi.php from the ObjectSerializer::deserialize. image

Can someone help me?

adityarx commented 11 months ago

Hello @IMYELI apologies on this and thank you for bringing this up to us. I've raised this to the relevant team and they're working to update the bank codes now 🙏

IMYELI commented 11 months ago

Thankyou for the response. I'll wait for follow up regarding this matter.

adityarx commented 11 months ago

@IMYELI thanks for your patience, could you upgrade to v3.2.0? We have pushed the fix to this version.

adityarx commented 11 months ago

Closing this as I assume the fix works already 🙏