fix render cart
This commit is contained in:
parent
954e9f8ae6
commit
5f2f5e09c3
@ -97,13 +97,14 @@ class PaypalController extends ApiBaseController {
|
|||||||
$customer_info['SHIPTOCITY'] = $ppe->result['PAYMENTREQUEST_0_SHIPTOCITY'];
|
$customer_info['SHIPTOCITY'] = $ppe->result['PAYMENTREQUEST_0_SHIPTOCITY'];
|
||||||
$customer_info['SHIPTONAME'] = $ppe->result['PAYMENTREQUEST_0_SHIPTONAME'];
|
$customer_info['SHIPTONAME'] = $ppe->result['PAYMENTREQUEST_0_SHIPTONAME'];
|
||||||
|
|
||||||
|
$saved_cart = $cart;
|
||||||
$result = $this->validateOrder($customer, $cart, $ppe);
|
$result = $this->validateOrder($customer, $cart, $ppe);
|
||||||
|
|
||||||
if ($result !== true) {
|
if ($result !== true) {
|
||||||
throw new HttpBadRequestException('Une erreur est survenue lors de la validation de votre commmande. Veuillez réesayer ultérieurement.');
|
throw new HttpBadRequestException('Une erreur est survenue lors de la validation de votre commmande. Veuillez réesayer ultérieurement.');
|
||||||
}
|
}
|
||||||
$cart::$_shouldRenderOrderId = true;
|
$saved_cart::$_shouldRenderOrderId = true;
|
||||||
return $cart;
|
return $saved_cart;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user