// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
const stripe = require('stripe')('sk_test_51LzKmCACB9SThm57JmrSLRjOfKtucMHQSntW6LYPmMwKTrOcuIgxfukt71rNyMN0k75DDN8oC4U99ZMNkLTrJwJD00AhUVLcg8');
const session = await stripe.checkout.sessions.create({
line_items: [
{
price: '{{PRICE_ID}}',
quantity: 1,
},
],
mode: 'payment',
ui_mode: 'embedded',
return_url: 'https://example.com/return',
});