#Partner

1 messages · Page 1 of 1 (latest)

rigid hollyBOT
raven bronze
#

What exactly do you want to test? And what is 'local'?

tulip wagon
#

My desktop

#

@raven bronze Thanks for your reply.

raven bronze
#

Please don't @ me

tulip wagon
#

Oh sorry

raven bronze
#

Sure, you can use our SDKs in your local dev environment

tulip wagon
#

I tried to test it using node.js on local

#

I have this issue.

#

But I set amount as 10usd

raven bronze
#

Can you share the value you passed to amount?

tulip wagon
#

const stripe = require("stripe")(stripeKey);
async function getIntent() {
return await stripe.paymentIntents.create({
amount: 10.00,
currency: "usd"
});
}

#

This is code

raven bronze
#

Yep, amount expects an integer in the lowest currency unit (i.e. cents)

#

So you'd pass amount: 1000

tulip wagon
#

Oh thank you

#

Let me try

raven bronze
tulip wagon
#

Thanks for your help.