Jump to content

Problem with Redirecting back to Prestashop from Paypal


RedDragonStar

Recommended Posts

Hi there,

 

I'm relatively new to Prestashop, and have had a look at the forum for a similar topic, but couldn't find one with the same error as me, so if this has been posted before, I apologise profusely.

 

I have a Prestashop that uses the standard Paypal module for payments. As far as I can tell, the whole thing is configured correctly re: API credentials, etc. I have version 1.6.1.3 of PS and version 3.10.6 of the Paypal module. When I try to put a payment through Paypal, the payment is taken, but the order is not created in the back office, and I receive a 500 HTML error.

 

When error reporting is switched on, I get the following error message:

 

Fatal error: Uncaught exception 'PrestaShopException' with message 'Can't load Order status' in /var/www/vhosts/{WEBURL}/httpdocs/classes/PaymentModule.php:190 Stack trace: #0 /var/www/vhosts/{WEBURL}/httpdocs/modules/paypal/paypal.php(1857): PaymentModuleCore->validateOrder(27, 2, 5.5, 'PayPal', 'Payment accepte...', Array, 1, false, '79ec5bda59cf249...', Object(Shop)) #1 /var/www/vhosts/{WEBURL}/httpdocs/modules/paypal/express_checkout/payment.php(353): PayPal->validateOrder(27, 2, 5.5, 'PayPal', 'Payment accepte...', Array, 1, false, '79ec5bda59cf249...', Object(Shop)) #2 /var/www/vhosts/{WEBURL}/httpdocs/modules/paypal/express_checkout/payment.php(371): validateOrder(Object(Customer), Object(Cart), Object(PaypalExpressCheckout)) #3 {main} thrown in /var/www/vhosts/{WEBURL}/httpdocs/classes/PaymentModule.php on line 190

 

where {WEBURL} is the url of the website. As you can probably tell from the paths in the error message, the site is hosted on a VPS.

 

Is this a known error that has been reported before, and if so, can someone link me to the solution? Or do I need to contact somebody at PP or PS for assistance.

 

Thank you in advance for your help (if you can help. And if you can't help, thanks for looking at the problem, anyway. :)  )

 

Thanks,

 

Gaz.

Link to comment
Share on other sites

From the error message, it seems the module was not able to load order status. The order status ID is 2, (Payment Accepted).

 

Please check your store to make sure that the order status is there, not deleted.

 

Back office - Orders - Order Statues tab

Link to comment
Share on other sites

Hmm,

 

It shows "No records found" under Order Statuses.

 

If somebody can tell me what records should be there/a tutorial on setting them up properly, I can add them through the Prestashop backoffice.

 

I do have access to phpMyAdmin if I need to do it that way, too.

 

Thanks,

 

Gaz.

Link to comment
Share on other sites

Ok,

 

I've added the Order Statuses in that are supposed to be there, and everything seems to be working properly now.

 

Thank you so much for your help.

 

This can be marked as SOLVED now, I think.

 

Prestashop is such a great product.

 

Thanks,

 

Gaz.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...