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
156 stars 76 forks source link

Wrong validation parameters in createCustomer() method #206

Open NordSpirit4567 opened 1 year ago

NordSpirit4567 commented 1 year ago

CreateCustomer required that param 'given_names' was in the request's body. But documentation and API wait for it in the 'individual_detail' object. So it is just impossible to create Customer via Xendit lib.

adityarx commented 1 year ago

@NordSpirit4567 I believe only the previous Customer API version is supported in our PHP library. https://developers.xendit.co/api-reference/customers/customer-object/#customer-object

Unfortunately, if you'd like to use the newer one, you'll have to directly integrate to the API. Sorry about that~