jazzband/django-payments

Stripe always multiples amount by 100

WhyNotHugo opened this issue · 1 comments

The stripe provider always multiples total amounts by 100. This works well for currencies where the subunit is 1/100, but will change the wrong amount for other currencies (e.g.: CLP).

I'm not sure how to address this; we should take great care so as not to break existing integrations.

Referenced in: #349

Well, the model has the currency code, and with something like Managed Attributes, or simply checking the currency code to make the conversion -if needed- when the session is created.

I'll add it to my next pull request.

Stripe Docs