returning cart after payment

This commit is contained in:
Christophe LATOUR 2017-11-28 10:44:33 +01:00
parent 3a6c74e52b
commit b0bb2abcda
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;
}
/**