From fa7a20ab2e4a7333ab92ac19de7c1bdbfe91c9b6 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Wed, 14 Sep 2016 15:26:12 +0200 Subject: [PATCH] fix price 3 --- modules/paybox/direct_paiement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paybox/direct_paiement.php b/modules/paybox/direct_paiement.php index 7f4d11c3..82fb50ad 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 = (int)sprintf('%f', number_format(Tools::convertPrice($cart->getOrderTotal(), null, false), 2, '.', '') * 100); +$montant = (int)(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' => sprintf('%010',$montant), + 'MONTANT' => sprintf('%010d',$montant), 'DEVISE' => $devise, 'REFERENCE' => (int)$cart->id, 'REFABONNE' => $refabonne,