No momento, esta página não está disponível em português
Payment-method icon

Afterpay Drop-in integration

Add Afterpay to an existing Drop-in integration.

If you are using Android Drop-in v5.0.0 or later:

This payment method requires no additional configuration.

Follow the Drop-in integration guide.

Our Android Drop-in renders Afterpay in your payment form, and redirects the shopper to complete the payment. As with other redirect payment methods, you need to check the payment result after the shopper returns to your app.

When making an Afterpay payment, you also need to:

  1. Collect shopper details, and specify these in your payment request. Afterpay uses these for risk checks.
  2. Provide information about the purchased items in your payment request.

Requirements

Requirement Description
Integration type Make sure that you have built an Advanced flow Android Drop-in integration.
Setup steps Before you begin, add Afterpay in your Customer Area.

Show Afterpay in your payment form

Drop-in uses the countryCode and the amount.currency from your /paymentMethods request to show the available payment methods to your shopper.

To show Afterpay in your payment form, specify in your /paymentMethods request one of the following combinations:

Country/region countryCode amount.currency
Australia AU AUD
New Zealand NZ NZD
United States US USD
Canada CA CAD

Make a payment

When the shopper proceeds to pay, Drop-in returns the paymentComponentData.paymentMethod.

  1. Pass the paymentComponentData.paymentMethod to your server.

  2. From your server, make a /payments request, specifying:

    • paymentMethod: the paymentComponentData.paymentMethod from Drop-in.

    • shopperName: the shopper's full name. 

    • shopperEmail: the shopper's email address.  

    • telephoneNumber

      Optional
      : the shopper's phone number.

    • billingAddress: the postal address to be included on the invoice. 

    • deliveryAddress: the postal address where the goods will be shipped.

    • lineItems: price and product information about the purchased items.