Stripe getting amount different from expected while creating a plan through APIStripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?Can not get Stripe recipients to verify through APIHow to create STRIPE customer using STRIPE API in IOS?Obtaining the charge amount from a stripe token using stripe APIHow to get total amount after applying coupon in Stripe payment gatewayGetting the amount of a plan using stripe API in djangostripe api: multiple plans / subscriptions, single invoiceHow to get payment amount from Stripe token? (in PHP)Stripe API create charge through iOS Code?Stripe API using PHP: get all subscribers under a product & OR under a pricing planHow to get the Charge ID after subscribing a customer to a plan in .net core 2.0 using Stripe API
What is paid subscription needed for in Mortal Kombat 11?
Failed to fetch jessie backports repository
How do I go from 300 unfinished/half written blog posts, to published posts?
A particular customize with green line and letters for subfloat
Two monoidal structures and copowering
Type int? vs type int
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
Escape a backup date in a file name
System.debug(JSON.Serialize(o)) Not longer shows full string
Is there a good way to store credentials outside of a password manager?
Method to test if a number is a perfect power?
How do scammers retract money, while you can’t?
Why are there no referendums in the US?
How does it work when somebody invests in my business?
Short story about space worker geeks who zone out by 'listening' to radiation from stars
Fastening aluminum fascia to wooden subfascia
How to check is there any negative term in a large list?
How to draw lines on a tikz-cd diagram
Is `x >> pure y` equivalent to `liftM (const y) x`
Is exact Kanji stroke length important?
Why escape if the_content isnt?
Gears on left are inverse to gears on right?
Is expanding the research of a group into machine learning as a PhD student risky?
How to pronounce the slash sign
Stripe getting amount different from expected while creating a plan through API
Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?Can not get Stripe recipients to verify through APIHow to create STRIPE customer using STRIPE API in IOS?Obtaining the charge amount from a stripe token using stripe APIHow to get total amount after applying coupon in Stripe payment gatewayGetting the amount of a plan using stripe API in djangostripe api: multiple plans / subscriptions, single invoiceHow to get payment amount from Stripe token? (in PHP)Stripe API create charge through iOS Code?Stripe API using PHP: get all subscribers under a product & OR under a pricing planHow to get the Charge ID after subscribing a customer to a plan in .net core 2.0 using Stripe API
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 .
stripe-payments .net-core-2.0
add a comment |
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 .
stripe-payments .net-core-2.0
Possible duplicate of Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?
– karllekko
Mar 7 at 13:36
Amounts in Stripe's API are always in cents, soamount:1600means 1600 cents i.e. $16.
– karllekko
Mar 7 at 13:36
add a comment |
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 .
stripe-payments .net-core-2.0
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 .
stripe-payments .net-core-2.0
stripe-payments .net-core-2.0
asked Mar 7 at 12:53
Poonam KariaPoonam Karia
247
247
Possible duplicate of Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?
– karllekko
Mar 7 at 13:36
Amounts in Stripe's API are always in cents, soamount:1600means 1600 cents i.e. $16.
– karllekko
Mar 7 at 13:36
add a comment |
Possible duplicate of Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?
– karllekko
Mar 7 at 13:36
Amounts in Stripe's API are always in cents, soamount:1600means 1600 cents i.e. $16.
– karllekko
Mar 7 at 13:36
Possible duplicate of Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?
– karllekko
Mar 7 at 13:36
Possible duplicate of Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?
– karllekko
Mar 7 at 13:36
Amounts in Stripe's API are always in cents, so
amount:1600 means 1600 cents i.e. $16.– karllekko
Mar 7 at 13:36
Amounts in Stripe's API are always in cents, so
amount:1600 means 1600 cents i.e. $16.– karllekko
Mar 7 at 13:36
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55044290%2fstripe-getting-amount-different-from-expected-while-creating-a-plan-through-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 7 at 14:47
MátéMáté
1,70131322
1,70131322
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55044290%2fstripe-getting-amount-different-from-expected-while-creating-a-plan-through-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Stripe Currency - Are all amounts in cents / 100ths, or does it depend on currency?
– karllekko
Mar 7 at 13:36
Amounts in Stripe's API are always in cents, so
amount:1600means 1600 cents i.e. $16.– karllekko
Mar 7 at 13:36