Page 1 of 1

[SOLVED] Problem with redirect after purchase (Paypal Integration)

Posted: Mon Dec 09, 2024 3:01 am
by RoarKing
Hello,
I have a problem with Paypal Integration (free module from marketplace: https://www.opencart.com/index.php?rout ... _license=0)
I use OC version 4.0.2.3
Everything works, I can make payment with Paypal and Credit Card and the purchase is completed, customer can find the order in his/her account.
The problem is that after you pay, the page stuck on checkout page and does not redirect to the success page. Also the products still in the shopping cart.
Anyone know what to do to fix it?
Thank you.

Re: Problem with redirect after purchase (Paypal Integration)

Posted: Mon Dec 09, 2024 10:48 am
by softmonke
RoarKing wrote:
Mon Dec 09, 2024 3:01 am
Hello,
I have a problem with Paypal Integration (free module from marketplace: https://www.opencart.com/index.php?rout ... _license=0)
I use OC version 4.0.2.3
Everything works, I can make payment with Paypal and Credit Card and the purchase is completed, customer can find the order in his/her account.
The problem is that after you pay, the page stuck on checkout page and does not redirect to the success page. Also the products still in the shopping cart.
Anyone know what to do to fix it?
Thank you.
Check your browser console log to see if there are any errors when payment is made, and check your admin error logs as well.

From your description of the error, there might be a chance that there is an error when sending the order confirmation email. Try using your website's contact form and submit a test request, and see if there are any errors. If there are, then it's most likely an issue with your SMTP or email setup.

Re: Problem with redirect after purchase (Paypal Integration)

Posted: Mon Dec 09, 2024 4:38 pm
by RoarKing
I found the issue.
The problem come when I disable Shipping methods (because of digital product, so no need shipping).
If I active Require shipping on the product and set free shipping, the payment works and redirect also.