#Partner
1 messages · Page 1 of 1 (latest)
What exactly do you want to test? And what is 'local'?
Please don't @ me
Oh sorry
Sure, you can use our SDKs in your local dev environment
I tried to test it using node.js on local
I have this issue.
But I set amount as 10usd
Can you share the value you passed to amount?
const stripe = require("stripe")(stripeKey);
async function getIntent() {
return await stripe.paymentIntents.create({
amount: 10.00,
currency: "usd"
});
}
This is code
Yep, amount expects an integer in the lowest currency unit (i.e. cents)
So you'd pass amount: 1000
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks for your help.