xendit-php icon indicating copy to clipboard operation
xendit-php copied to clipboard

Wrong validation parameters in createCustomer() method

Open NordSpirit4567 opened this issue 1 year ago • 1 comments

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.

NordSpirit4567 avatar Jul 18 '23 13:07 NordSpirit4567

@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~

adityarx avatar Jul 19 '23 01:07 adityarx