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

No feedback when SubscriptionCreateCheckoutForm::create() fails

Open FrancescoMussi opened this issue 4 years ago • 2 comments

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?

FrancescoMussi avatar Mar 05 '20 11:03 FrancescoMussi

HI there

May you create subscription customer or subscription product with sandbox API ?

Thanks

PREScriptZ avatar Sep 18 '20 03:09 PREScriptZ

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:

ShopskaSalad avatar Dec 29 '20 15:12 ShopskaSalad