Skip to main content

Afterpay

Craftgate is integrated with Afterpay which is one of the alternative payment methods. With the API and the Common Payment Page, you can easily receive payments from Afterpay users.

Things to do first

In order to use the Afterpay integration, you must have completed the following steps.

  1. Alternative Payment Methods must be On on Merchant Panel > Administration > Merchant Settings > Craftgate Features list.

    Alternative Payment Methods in Craftgate Features
  2. Enter the information sent to you by Afterpay on Merchant Panel > Administration > APM Management > Afterpay after Enable Afterpay Integration status.

    Afterpay integration settings

Payment via Afterpay

You can receive payments from Afterpay users via Craftgate API and Common Payment Page. See: Payment with Payment Form

Payment via Afterpay From API

You can integrate with alternative payment methods service via Craftgate API to receive Afterpay payments.

  1. APM Payment Init: You should send apmType as AFTERPAY to init Afterpay payment

For more information, see Pay With Alternative Payment Methods

  1. APM Payment Complete with Afterpay Account: User will be redirected to Afterpay account page. When user approve the payment, user will be redirected to your callbackUrl with the result.

For more information, see Complete Alternative Payment Methods

Payment via Afterpay From Common Payment Page

The payment experience and flow can be summarized as follows.

  1. The following notification message will be displayed when the Afterpay tab is selected.

    Afterpay Common Payment Page Tab
  2. When the Pay button is clicked, user will be redirected to Afterpay account page and after approval of payment user is directed to the callbackUrl address which is sent while payment form init request. See: Payment with Payment Form

Receive Payment Only via Afterpay

If you send ["AFTERPAY"] with the enabledPaymentMethods parameter in the payment form initiation request, the card payment tab will not be displayed to the user. Only the Afterpay tab will be accessible.

Only Afterpay Tab

Sample Codes for Init Afterpay APM

Loading..