See the code behind this demo!

Blik with automatic payment methods

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


Console

> Ready ...


            
            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,
              });
            });
            
          

Experiment and learn

Make copies, remix, change and learn how to play with this tinydemo.


Any questions?

Reach out to us on any of our contact channels: