See the code behind this demo!

Afterpay

Afterpay (Clearpay in the UK) lets your customers pay in 4 installments, but you receive the full payment amount up front and Afterpay does the rest.


Payment amount: $10.99

Console

> Ready ...

          
  const intent = await stripe.paymentIntents.create({
    amount: 1099,
    currency: "usd",
    payment_method_types: ["afterpay_clearpay"],
    shipping: {
      name: "Jenny Rosen",
      address: {
        line1: "1234 Main Street",
        city: "San Francisco",
        state: "CA",
        country: "US",
        postal_code: "94111"
      }
    }
  });
          
        

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: