With Checkout you can now setup recurring payments using Bancontact, iDEAL and Sofort. After the first payment, a SEPA account will be saved for future payments.
fastify.post("/create-checkout-session", async (request, reply) => {
const session = await stripe.checkout.sessions.create({
payment_method_types: ["ideal", "bancontact", "sofort"],
line_items: [
{
price: process.env.RECURRING_PRICE_ID,
quantity: 1,
},
],
mode: "subscription",
success_url: `${process.env.BASE_URI}?success=true`,
cancel_url: `${process.env.BASE_URI}/?cancel=true`,
});
reply.redirect(session.url);
});
Make copies, remix, change and learn how to play with this tinydemo.
Reach out to us on any of our contact channels: