Reputation: 7
I am developing a website using django. I need to integrate Stripe payment gateway into my website. I implemented the payment process successfully, but I am getting "Invalid Parameters" error if charge amount in decimal.
Upvotes: 0
Views: 2084
Reputation: 180023
Due to potential issues with floating point math, Stripe only accepts an integer for payment amounts. For currencies with decimal amounts, Stripe's API takes the smallest division; for example, in USD, the payment amount is denominated in cents, not dollars; for $1.00, you'd send 100
.
Upvotes: 1