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.
To test Blik use a fake email address and any 6 digit number like 123456
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: 'pln',
});
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: