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

Afterpay for API only

Add Afterpay to an existing API-only integration.

Accept Afterpay payments using our APIs, and build your own payment form to have full control over the look and feel of your checkout page.

Requirements

Requirement Description
Integration type Make sure that you have built an API-only integration.
Setup steps Before you begin, add Afterpay in your test Customer Area.

Build your payment form for Afterpay

If you are using /paymentMethods to show which payment methods are available to the shopper,
specify in your request one of the following combinations of countryCode and amount.currency:

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

We provide an Afterpay logo which you can use on your payment form. For more information, refer to Downloading logos.

To perform risk checks, Afterpay requires you to collect the following shopper details:

  • Full name
  • Email address
  • Billing address and delivery address.

Make a payment

  1. Make a /payments request from your server, specifying:

    • paymentMethod: afterpaytouch

    • 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.