Skip to main content
Primer’s direct integration to Afterpay enables you to accept payments across Web, iOS & Android.

Get started with Afterpay

Before you begin

If this is your first payment method, make sure to follow the Get started guide to begin processing payments with Primer.

Configure in the Dashboard

  1. Add Afterpay payment method to your Dashboard
Go to the integrations section of the Dashboard, click on the ‘New Integration’ button and search for Afterpay. Follow the instructions to connect your Afterpay processor account to your Primer Dashboard.
  1. Activate Afterpay on the Checkout
Go to the Checkout section of the Dashboard and activate the Afterpay payment method.
  1. Configure a Workflow to process payments made with Afterpay
Go to Workflows, and ensure there is a workflow with the Authorization action configured to process APMs.

Prepare the client session

Afterpay leverages the following parameters to process a payment. Pass them when creating the client session.
Parameter NameRequiredDescription
currencyCode3-letter currency code in ISO 4217 format, e.g. USD for US dollars
order
↳ lineItems
Details of the line items of the order
order
↳ countryCode
The country code of the user is required for Afterpay.
paymentMethod
↳ descriptor
The descriptor of the payment method is required for Afterpay.

Add Afterpay into your website or mobile app

Drop-in UI

Use our customizable drop-in UI to quickly add payment methods to your checkout.

Headless Checkout

Have the freedom to build your own UI using our headless checkout.