Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong validation parameters in createCustomer() method #206

Open
NordSpirit4567 opened this issue Jul 18, 2023 · 1 comment
Open

Wrong validation parameters in createCustomer() method #206

NordSpirit4567 opened this issue Jul 18, 2023 · 1 comment

Comments

@NordSpirit4567
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants