1

I am creating a plan in stripe through its API and I get the issue of amount.The problem is I am having a long datatype of Amount in c# (.net core 2.0 )When I pass 1600 as a value the Stripe takes on 16 as an amount and creates a plan of $ 16 whereas I want to create a plan of $1600. What can be the change I need to make for this .

Poonam Karia
  • 109
  • 1
  • 11
  • Possible duplicate of [Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?](https://stackoverflow.com/questions/35326710/stripe-currency-are-all-amounts-in-cents-100ths-or-does-it-depend-on-curren) – karllekko Mar 07 '19 at 13:36
  • Amounts in Stripe's API are always in cents, so `amount:1600` means 1600 cents i.e. $16. – karllekko Mar 07 '19 at 13:36

1 Answers1

1

If you'd like to create a plan for $1600 (US Dollars) You need to pass in 160000. Stripe's API works based on zero decimal currencies. Other currencies may not have cents (or the equivalent) i.e. Japanese Yen.

Máté
  • 2,294
  • 3
  • 18
  • 25