Airwallex

Airwallex supports both Apple Pay and Google Pay.

If using CheckoutChamp pages then follow Apple Pay instructions here.

If using CheckoutChamp pages then follow Google Pay instructions here.

If not using CheckoutChamp pages then obtain the appropriate token on your page and pass to CheckoutChamp on the Import Order API call.

  • Contact Airwallex to enable the third-party 3DS feature

  • Contact Airwallex to enable the skip 3DS feature

STEP 1

Go to Gateways | Gateway Integrations and select the Airwallex tile. Click on +Activate.

STEP 2

Enter a title for the gateway.

Then enter the following information specific to Airwallex:

clientId - obtained from Airwallex

apiKey - obtained from Airwallex. The restricted API key must be set with only the permission Payment Acceptance → Payment Acceptance (Edit & View). Do not set any other permissions.

secure3DS - choose Default, Skip, or Force. Check with your Airwallex AM for the proper choice.

sendUpsellToken - choose to send a payment token instead of card number on upsells.

Steps 3-5 can be skipped if using CheckoutChamp hosted pages

STEP 3

Add the hidden input browserData inside of the same form as the card input.

<input type="hidden" name="browserData" value="" id="browserData">

STEP 4

Add this script to your page before the closing body tag.

<script type="text/javascript">
    const navigator = window.navigator;
    const browserData = {
        acceptHeader: 'application/json',
        userAgent: navigator.userAgent,
        language: navigator.language,
        timezone: (new Date()).getTimezoneOffset().toString(),
        colorDepth: screen.colorDepth,
        screen: {
            height: screen.height.toString(),
            width: screen.width.toString()
        },
        javaScriptEnabled: true,
        javaEnabled: navigator.javaEnabled()
    };
    document.getElementById('browserData').value = JSON.stringify(browserData);
</script>

STEP 5

If using Secure 3DS be sure the checkout page supports the challenge requests

Basic 3DS Instructions

Last updated