Afterpay Pacific

Afterpay Pacific Payments

Follow this guide to add Afterpay Pacific right to your checkout.

Brand constants to be used:
  • AFTERPAY_PACIFIC - Afterpay Pacific.

Afterpay Pacific payment methods availability:

  • Native integration - since mSDK version 6.0.0;


Ready-to-Use UI

When you use our ready-to-use UI, everything works out-of-box. Just set payment brands and shopper result url in the Checkout Settings class and you are done. Proceed with the presenting checkout as for standard transaction.

SDK & Your Own UI

If you use our mSDK just for backend communication, you will have to go through the Afterpay Pacific SDK integration as well. In this guide we assume you already implemented all steps for performing standard mSDK transaction. There are 3 main steps:

1. Get Afterpay Pacific redirect checkout url

First of all, create AfterpayPacificPaymentParams object and submit a transaction and Server will return:

  • redirect checkout url to redirect transaction to the Afterpay Pacific.
  • callback url to complete the transaction after all.
  • failure callback url to handle the failure/cancel transaction.

NOTE: To learn more about shopper result url refer to Asynchronous Payments guide.

2. Proceed with the Afterpay Pacific Mobile SDK

3. Notify Server about payment completion

NOTE: Expected response from callback urls is a redirect to the shopper result url. You might want to check that status and location of redirect url are valid, or it's also an option just to ignore the response. Request payment status as usual to get final result of the transaction.