diff --git a/modules/paybox/direct_paiement.php b/modules/paybox/direct_paiement.php index 05159b68..7f4d11c3 100644 --- a/modules/paybox/direct_paiement.php +++ b/modules/paybox/direct_paiement.php @@ -55,7 +55,7 @@ $pbx_id = trim(Configuration::get('PBX_ID')); $num_question = Configuration::get('NUM_QUESTION_PAYBOX') + 1; Configuration::updateValue('NUM_QUESTION_PAYBOX', $num_question); -$montant = sprintf('%010f', number_format(Tools::convertPrice($cart->getOrderTotal(), null, false), 2, '.', '') * 100); +$montant = (int)sprintf('%f', number_format(Tools::convertPrice($cart->getOrderTotal(), null, false), 2, '.', '') * 100); $devise = 978; $numbers = urldecode($paybox_card['handle']); $dateval = $paybox_card['date']; @@ -96,7 +96,7 @@ $postfields = array( 'RANG' => $pbx_rang, 'CLE' => 'EFNLJKFB', 'NUMQUESTION' => $num_question, - 'MONTANT' => $montant, + 'MONTANT' => sprintf('%010',$montant), 'DEVISE' => $devise, 'REFERENCE' => (int)$cart->id, 'REFABONNE' => $refabonne,