PayPal Standard Checkout Integration in PHP (500 error)

Josephtrevize
Contributor
Contributor

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).

err.png

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.

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

Kavyar
Moderator
Moderator

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.

View solution in original post

Login to Me Too
1 REPLY 1
Solved

Kavyar
Moderator
Moderator

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.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.