cartridge-stripe
cartridge-stripe copied to clipboard
Charge amount rounded down
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),