#Bhumika17-Coupon
1 messages ยท Page 1 of 1 (latest)
I create a coupon with the property AmountOff = 100.00
Then, when I make a couponService.Get from that coupon I get 10000
OK, so what's the problem here?
let me show you
please see this
as per above screen i want coupon amount as 100.00
but i got 10000 ๐ฆ
I see. Well this is the expected. The amount unit here is cent, so 10000 cents = 100 dollars
so you told me , i need to translate cent to dollar
am i right?
All Stripe API excepts the amount in the currency's smallest unit (i.e., cent), except for some zero-decimal currencies (https://stripe.com/docs/currencies#zero-decimal)
So if you are sending the amount to Stripe API or SDK, then there is no need to convert the cents to dollars.
oh
i am creating coupon from dashboard.
so i need to convert cents to dollars
ok thank you so much
No problem, happy to help ๐