fix render cart

This commit is contained in:
Christophe LATOUR 2017-12-04 12:41:37 +01:00
parent 954e9f8ae6
commit 5f2f5e09c3

View File

@ -97,13 +97,14 @@ class PaypalController extends ApiBaseController {
$customer_info['SHIPTOCITY'] = $ppe->result['PAYMENTREQUEST_0_SHIPTOCITY'];
$customer_info['SHIPTONAME'] = $ppe->result['PAYMENTREQUEST_0_SHIPTONAME'];
$saved_cart = $cart;
$result = $this->validateOrder($customer, $cart, $ppe);
if ($result !== true) {
throw new HttpBadRequestException('Une erreur est survenue lors de la validation de votre commmande. Veuillez réesayer ultérieurement.');
}
$cart::$_shouldRenderOrderId = true;
return $cart;
$saved_cart::$_shouldRenderOrderId = true;
return $saved_cart;
}
/**