Using a single integration, you can toggle payment methods on and off in your Dashboard. This gives you access to additional local payment methods as we release them without having to change your code.
fastify.post("/create-payment-intent", async (request, reply) => {
// Create the PaymentIntent
const paymentIntent = await stripe.paymentIntents.create({
automatic_payment_methods: {
enabled: true,
},
amount: 1000,
currency: 'eur',
});
reply.send({
clientSecret: paymentIntent.client_secret,
});
});
Make copies, remix, change and learn how to play with this tinydemo.
Reach out to us on any of our contact channels: