I'm trying to make this script work on my server. The code looks fine, and their live demo (codexworld's) works fine, however on my server it doesn't.
On my server, when making the (sandbox) payment, I receive a 500 (Internal Server Error) when the script tries to validate the payment (paypal_checkout_validate.php). There is also this message in the browser's (Chrome) console: SyntaxError: Unexpected end of JSON input (index.php).

As far as know, the file permissions and the code are fine. What can be the issue?
I'd have asked the Codexworld since it's their code, but they seem to charge for support, even though they offer this script for free. To save space here, I haven't copied the code over - if this should be done, let me know so I can edit this post.
Источник: https://stackoverflow.com/questions/780 ... -500-error