TrogloGeek / prestashop-tggatos-module

TggAtos Module for Prestashop (1.4 to 1.7), ATOS SIPS 6xx payment gateway
61 stars 34 forks source link

Bug - Amount multiplied by 100 when payment failure #11

Closed theben22 closed 11 years ago

theben22 commented 11 years ago

Hello all,

When payment failure, the amount showed comes from parameter of request and thus is multiplied by 100 (916€ instead of 9,16€ for instance).

If you do not want to afraid customers, it is better to modify views/templates/front/payment_failure.tpl file. You have to change line 65 from {$tggatos_response->amount} to {$tggatos_response->amount/100} That is no really clean but it works.

Regards,

e-gaulue commented 11 years ago

I confirm, thank for the hack !

TrogloGeek commented 11 years ago

This is no bug, it displays amount in the lowest currency unit (the way ATOS SIPS works). Anyway, last commit changed this. 0c88f9d14b20e741b7ae7b478905f2065336c709

e-gaulue commented 11 years ago

You have the same behavior in the "log" message linked to the command.

TrogloGeek commented 11 years ago

This is a developer choice : log message logs SIPS returned values, I want them as untouched as possible. If I would manipulate these data prior to log them, they would not be usable for debug purpose and would not be trustworthy.