fix refabonne
This commit is contained in:
parent
5f2f5e09c3
commit
fd2a170214
@ -105,7 +105,7 @@ class PayboxController extends ApiBaseController {
|
||||
't' => (int)$response['NUMAPPEL'],
|
||||
'p' => $response['AUTORISATION'],
|
||||
//TODO
|
||||
'c' => $input_data['CARD_TYPE'],
|
||||
'c' => isset($input_data['CARD_TYPE']) ? $input_data['CARD_TYPE'] : 'Inconnu',
|
||||
'a' => 'CARTE',
|
||||
's' => (int)$response['NUMTRANS'],
|
||||
'e' => $response['CODEREPONSE'],
|
||||
@ -126,7 +126,8 @@ class PayboxController extends ApiBaseController {
|
||||
$info = '<b>Successful operation</b><br>'."\n\n";
|
||||
$info .= 'PayBox version: '.$paybox->version."\n".'<br> POST '.print_r($this->postFields, true)."\n".'<br>GET '.print_r($response, true)."\n";
|
||||
$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);
|
||||
$refabonne = isset($input_data['REFABONNE']) && !empty(trim($input_data['REFABONNE'])) ? $input_data['REFABONNE'] : null;
|
||||
$paybox->saveInformationPaiement($data, false, $refabonne);
|
||||
}
|
||||
$cart::$_shouldRenderOrderId = true;
|
||||
return $cart;
|
||||
|
Loading…
Reference in New Issue
Block a user