Stripe Checkout lets you integrate payment processing into your app. With Checkout, you create the cart on your end and send the customer to the Stripe for Checkout. Stripe also has no code options for Payment Links and Invoicing.
const session = await stripe.checkout.sessions.create({
line_items: [{
price_data: {
currency:
'usd',
unit_amount:
1000,
product_data:{
name:
'Stripe Playground',
description:
'This is a playground to check out Stripe Checkout',
},
},
quantity:
1,
}],
mode: 'payment',
success_url: 'undefined',
cancel_url: 'undefined',
});