- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, 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.
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 I can see, the file permissions and the code are fine. What can be the issue the issue?
These is my testing environment (not working) and their testing page (working). 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.
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @Josephtrevize
Thank you for posting to the PayPal community.
I would like to suggest you try again to address the issue you are currently facing by following the below steps:
1)Clear web browser cache and cookies
2)Use a different browser
3)Access website in private/safe mode
If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @Josephtrevize
Thank you for posting to the PayPal community.
I would like to suggest you try again to address the issue you are currently facing by following the below steps:
1)Clear web browser cache and cookies
2)Use a different browser
3)Access website in private/safe mode
If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- iDEAL payments being refunded back to customers in PayPal Payments Standard
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs