iyzipay-php
iyzipay-php copied to clipboard
No feedback when SubscriptionCreateCheckoutForm::create() fails
When SubscriptionCreateCheckoutForm::create()
fails it doesn't return any error message.
It simply return an empty object.
And the getToken()
and getCheckoutFormContent()
functions simply return null
.
In this way it's not easy to figure out what went wrong. I need each time to check each input field one by one.
For instance if I pass a fake phone number, SubscriptionCreateCheckoutForm::create()
will fail, but it won't give any explanation on why it failed.
If there is input validation, is it possible to return the error messages in the response?
HI there
May you create subscription customer or subscription product with sandbox API ?
Thanks
HI there
May you create subscription customer or subscription product with sandbox API ?
Thanks
Hey @FrancescoMussi, did @PREScriptZ's advice would be helpful? Happy merry coding! :santa: