#dowabes219
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I need to pass float value
Ok, but to which endpoint/parameter?
amount=(price),
currency='usd',
automatic_payment_methods={
'enabled': True,
},
)```
Yep, amount expects an integer in the lowest currency denominator (so for USD, cents)
So if you want to charge $664.62, you'd send amount: 66462
I don't understand
Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).