Jump to content

Exception while finishing payment


Recommended Posts

Hi everybody,

 

i build my new shop with prestashop, but when i tried to implement PayPal i get a fatal error while buying an article.

I can checkout the articles with paypal and the amout is transferd from one account to my seller account, but when i get back to prestashop this exception is raised. 

 

modules/paypal/express_checkout/payment.php

Fatal error: Uncaught exception 'PrestaShopException' with message 'Property Order->payment is empty' in /var/www/vhosts/jonato.de/httpdocs/shop/classes/ObjectModel.php:866 Stack trace: #0 /var/www/vhosts/jonato.de/httpdocs/shop/classes/ObjectModel.php(272): ObjectModelCore->validateFields() #1 /var/www/vhosts/jonato.de/httpdocs/shop/classes/order/Order.php(299): ObjectModelCore->getFields() #2 /var/www/vhosts/jonato.de/httpdocs/shop/classes/ObjectModel.php(480): OrderCore->getFields() #3 /var/www/vhosts/jonato.de/httpdocs/shop/classes/order/Order.php(304): ObjectModelCore->add(true, true) #4 /var/www/vhosts/jonato.de/httpdocs/shop/classes/PaymentModule.php(335): OrderCore->add() #5 /var/www/vhosts/jonato.de/httpdocs/shop/modules/paypal/paypal.php(1366): PaymentModuleCore->validateOrder(9, 12, 0.01, '', 'Pending payment...', Array, 1, false, 'ea7601b9820977f...', Object(Shop)) #6 /var/www/vhosts/jonato.de/httpdocs/shop/modules/paypal/express_checkout/payment.php(290): PayPal->validateOrder(9, 12, 0.01, '', 'Pending paymen in /var/www/vhosts/jonato.de/httpdocs/shop/classes/ObjectModel.php on line 866

I already reinstalled the Module (V3.8.1).

 

Greetings from Germany

Tobi

Link to comment
Share on other sites

I figured out the problem in my case.

The Paypal module was not translated completly in my language (multi language ecomm)

Reading the status of translation, it is not available yet in 1.6.0.11, but just in 1.6.0.9 at the moment.

I fixed it translating all strings of Paypal module at least.

 

By the way I think that something should be improved in catching exception of missing string instead of just "payment is empty" for debugging mode...

 

BR

  • Like 1
Link to comment
Share on other sites

I figured out the problem in my case.

 

The Paypal module was not translated completly in my language (multi language ecomm)

 

Reading the status of translation, it is not available yet in 1.6.0.11, but just in 1.6.0.9 at the moment.

 

I fixed it translating all strings of Paypal module at least.

 

By the way I think that something should be improved in catching exception of missing string instead of just "payment is empty" for debugging mode...

 

BR

 

I have solved the problem by the same way, I read lots of threads (3 hours) until reach this one, thank you very much massimiliano.durso for sharing the solution here, you have saved my life today! If you come to Valencia you will have a beer paid! ;)

Link to comment
Share on other sites

  • 2 weeks later...

I figured out the problem in my case.

 

The Paypal module was not translated completly in my language (multi language ecomm)

 

Reading the status of translation, it is not available yet in 1.6.0.11, but just in 1.6.0.9 at the moment.

 

I fixed it translating all strings of Paypal module at least.

 

By the way I think that something should be improved in catching exception of missing string instead of just "payment is empty" for debugging mode...

 

BR

 

Worked for me too.

 

What an ABSURD error!!! :angry:

Link to comment
Share on other sites

×
×
  • Create New...