Question: Stripe Payment Chekout

Stripe Payment Chekout

HI team site url : https://halalhut.jp/ Item ID:20046278 after checkout the Shopping cart and when i pay bill using stripe payment the product total amount is showing wrong. Example :- t

FF

Faizan Farook

Asked
HI team

site url : https://halalhut.jp/
Item ID:20046278

after checkout the Shopping cart and when i pay bill using stripe payment the product total amount is showing wrong.
Example :-
total product amount is 1700 yen. when click stripe pay button showing 170000 yen
automatically adding two extra 00
  • MS

    Mian Saleem

    Answered
    Hello,

    Stipe uses cents to hold the currency while SMS uses decimals. If the bill is USD10.00 that is equivalent to 1000 cents for Stripe. That's the reason SMA multiply the value to 100.

    Same is applicable to other currencies. If that is not the case then you can modify the `themes/default/shop/views/pages/view_order.php` around line no 388 `data-amount="<?= ($inv->grand_total - $inv->paid) * 100; ?>"` and remove the `* 100`

    Thank you
  • FF

    Faizan Farook

    Answered
    thank you for the support.now working perfectly..
  • FF

    Faizan Farook

    Answered
    HI team

    site url : https://halalhut.jp/ Item ID:20046278.

    payment total is 1 yen but stripe.com showing 100 yen..

    adding automatically two 00 in stripe site.
  • MS

    Mian Saleem

    Answered
    Hello,

    Yes, the have modified. I think, it due to charge as charge will be multiplying the amount to 100 also. Please try to edit `app/controllers/Pay.php` around line no 272 `$amount = ($grand_total * 100);` and remove `* 100` too.

    Thank you
  • Login to Reply