MAJ Module Paypal vers 5.1.1 (comme en prod)
This commit is contained in:
@@ -18,10 +18,11 @@
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2019 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
* @author 2007-2019 PayPal
|
||||
* @author 202 ecommerce <tech@202-ecommerce.com>
|
||||
* @copyright PayPal
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
*
|
||||
*/
|
||||
|
||||
include_once _PS_MODULE_DIR_.'paypal/classes/AbstractMethodPaypal.php';
|
||||
@@ -75,7 +76,11 @@ class PaypalEcValidationModuleFrontController extends PaypalAbstarctModuleFrontC
|
||||
Context::getContext()->cookie->__unset('paypal_ecs_email');
|
||||
|
||||
if (!empty($this->errors)) {
|
||||
$this->redirectUrl = Context::getContext()->link->getModuleLink($this->name, 'error', $this->errors);
|
||||
if ($this->errors['error_code'] == 10486) {
|
||||
$this->redirectUrl = $method_ec->redirectToAPI('SetExpressCheckout');
|
||||
} else {
|
||||
$this->redirectUrl = Context::getContext()->link->getModuleLink($this->name, 'error', $this->errors);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user