Closed (fixed)
Project:
Paybox payment for Ubercart
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Nov 2009 at 15:29 UTC
Updated:
15 Dec 2009 at 16:00 UTC
Je crois avoir trouvé un bug en découvrant que mes paiements ne passaient pas aléatoirement, en fait suivant la somme :
Dans http://mydomain/cart/checkout/review j'ai :
Subtotal: €8,00
TVA: €1,57
Total: €9,57
Dans /uc_paybox/uc_paybox.pages.inc j'ai:
$order->order_total a la valeur 9.568, donc $order->order_total*100 donne 956.8
=> ce qui donne error -8 (D'après Paybox L’erreur « -8 » provient du fait qu’une des variables numériques contient un caractère non numérique)
Ma solution de contournement pour le moment est d'ajouter un round() ligne53
$chaine['total'] = " PBX_TOTAL=". round($order->order_total * 100)
Phil
Comments
Comment #1
mogtofu33 commentedBonjour,
Cette erreur à été corrigé sur la nouvelle version uc_paybox 6.x-1.0, merci pour l'info.
Cordialement.
Jean.