Sample Animated Code

const stripe = require(‘stripe’)(‘sk_test_BQokikJOvBi2Hl4olfQ2’);

await stripe.paymentIntents.create({
amount: 2000,
currency: ‘usd’
});