Jump to content

Prestashop 1.6.09 and PayPal 3.7.2 not working


alex1964

Recommended Posts

Paypal Europe v 3.7.2

Try to pay with this module and get error page

 

Notice: Trying to get property of non-object in /srv/www/vhosts/xxxxxx/httpdocs/modules/paypal/express_checkout/process.php on line 125

Fatal error: Uncaught exception 'PrestaShopException' with message 'Property Cart->id_currency is empty' in /srv/www/vhosts/xxxxxx/httpdocs/classes/ObjectModel.php:846 Stack trace: #0 /srv/www/vhosts/xxxxxx/httpdocs/classes/ObjectModel.php(260): ObjectModelCore->validateFields() #1 /srv/www/vhosts/xxxxxx/httpdocs/classes/ObjectModel.php(605): ObjectModelCore->getFields() #2 /srv/www/vhosts/xxxxxx/httpdocs/classes/Cart.php(199): ObjectModelCore->update() #3 /srv/www/vhosts/xxxxxx/httpdocs/modules/paypal/express_checkout/process.php(126): CartCore->update() #4 /srv/www/vhosts/xxxxxx/httpdocs/modules/paypal/express_checkout/process.php(140): PaypalExpressCheckout->initParameters(true) #5 /srv/www/vhosts/xxxxxx/httpdocs/modules/paypal/express_checkout/payment.php(148): PaypalExpressCheckout->setExpressCheckout(false) #6 {main} thrown in /srv/www/vhosts/xxxxxx/httpdocs/classes/ObjectModel.php on line 846

 

Any idea what to do?

 

process.php line 123-127

if ($cart_currency !== $currency_module)
{
$this->context->cart->id_currency = $currency_module->id;
$this->context->cart->update();
}

 

 

Link to comment
Share on other sites

  • 2 months later...

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