returning cart after payment
This commit is contained in:
parent
3a6c74e52b
commit
b0bb2abcda
@ -121,7 +121,7 @@ class PayboxController extends ApiBaseController {
|
||||
$paybox->validateOrder((int)$cart->id, _PS_OS_PAYMENT_, ((int)$input_data['MONTANT']) / 100, $paybox->displayName, $info, array(), NULL, false, $user->secure_key, $data);
|
||||
$paybox->saveInformationPaiement($data);
|
||||
}
|
||||
return [];
|
||||
return $cart;
|
||||
}
|
||||
|
||||
//TODO: comment
|
||||
|
@ -47,7 +47,7 @@ class PaypalController extends ApiBaseController {
|
||||
|
||||
$_POST = array(
|
||||
'express_checkout' => 'payment_cart',
|
||||
'current_shop_url' => 'http://pp.bebeboutik.com/commande?step%3D3',
|
||||
'current_shop_url' => 'http://www.bebeboutik.com/commande?step%3D3',
|
||||
'bn' => 'PRESTASHOP_ECM',
|
||||
);
|
||||
$cart = $this->getCart();
|
||||
@ -102,7 +102,7 @@ class PaypalController extends ApiBaseController {
|
||||
if ($result !== true) {
|
||||
throw new HttpBadRequestException('Une erreur est survenue lors de la validation de votre commmande. Veuillez réesayer ultérieurement.');
|
||||
}
|
||||
return array();
|
||||
return $cart;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user