Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.

Declined payment without webhook server php not working #27

Closed
pasqua1981 opened this issue May 14, 2020 · 1 comment
Closed

Declined payment without webhook server php not working #27

pasqua1981 opened this issue May 14, 2020 · 1 comment

Comments

@pasqua1981
Copy link

Good morning,
I'm integrating the solution server PHP without webhook but there's something wrong with the declined payments (e.g. using 4000 0000 0000 9995).

The browser debug is giving me these 2 feedback:

  1. POST 500 > script.js line 101
  2. Uncaught (in promise) SyntaxError: Unexpected end of JSON input > script.js line 111

Actually I also found a small typing error at line 64 in script.js and I solved it.
It has to be pay.php instead of /pay

Successful payments are working properly, including the ones with authentication.
The problem I have it seems to be related only to declined payments.

Thank you for the kind support and for the very useful library!
Best regards.

@pasqua1981
Copy link
Author

SOLVED with fix: PHP Card exception to newer API reference #19

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

No branches or pull requests

1 participant