See the code behind this demo!

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.


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

              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: