cartridge-stripe icon indicating copy to clipboard operation
cartridge-stripe copied to clipboard

Charge amount rounded down

Open kd7lxl opened this issue 9 years ago • 0 comments

In the payment handler, the order total is rounded down to the nearest dollar before the Stripe Charge is created. This is bad. The Stripe Charge amount should match the order total.

cartridge_stripe/init.py:

    charge = stripe.Charge.create(amount=int(total) * 100,

Better:

    charge = stripe.Charge.create(amount=int(total * 100),

kd7lxl avatar Jun 09 '15 19:06 kd7lxl