diff --git a/app/Web/Controllers/Payments/PaypalController.php b/app/Web/Controllers/Payments/PaypalController.php index 34328ad..55a09b2 100644 --- a/app/Web/Controllers/Payments/PaypalController.php +++ b/app/Web/Controllers/Payments/PaypalController.php @@ -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; } /**