Airwallex logo

Configuration

  1. Go to: Plugins > Installed Plugins on your WordPress site. Click Airwallex API Setting within the Plugin you need to configure. WooCommerce Config step 1
  2. Enter your Client ID, API Key and Webhook Secret Key obtained from your Airwallex account (please see where and how to obtain the credentials in the next section). Config step 2
  3. Tick Yes checkbox, if you wish to submit order details, and Save Changes to proceed.
  4. Go to: WooCommerce > Settings > Payments and you’ll see all the separate payment methods Airwallex support. config step 4
  5. When first activated, the Airwallex payment method will be DisabledTick the Enable checkbox to enable your desired payment method.
  6. Enter a Title (required) and Description (optional) seen by the shopper during checkout.
  • The Title is shown at the payment method option on the Checkout Page and also within the Order showing how the shopper paid (e.g. “Credit Card” as shown in the screenshot below)
  • The Description is displayed within the payment method option on the Checkout Page (e.g. “Use your credit card to pay” as displayed in the screenshot below) Config step 6**
  1. Tick the Enable sandbox checkbox, if you wish to test before going live. If unticked, you will begin accepting payments with Airwallex immediately.
  2. Select a Checkout Form to configure how and where you would like the shopper to take payment actions for the chosen payment method
  • Embedded option will display embedded field(s) within the payment method option on the Checkout Page, in which specific inputs will be required from the shopper
  • On separate page option will redirect the shopper to another page to complete payment with the selected payment method
  1. Enter Statement Descriptor (required), a description that appears on a customer’s bank or credit card statement. The statement description must contain at least one letter and no more than 22 characters. In addition, these characters must be alpha-numeric and cannot contain > < " '.
  2. Tick Capture Immediately checkbox, if you wish to capture the charge immediately. Otherwise, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.
  3. Select a Capture Status of an order when the payment associated with the order is to be captured.
  4. Save changes to complete the configuration. config step 12 config step 12-2
Note

Setup and configuration may vary for different payment methods. For example, steps 8 - 11 mentioned above are applicable to Credit Card NOT Wechat Pay. You will only need to complete steps 1 - 7 to immediately accept Wechat Pay payments.

API and Webhook

In order to utilize Airwallex APIs within the Plugin and let us take care of payment from your shoppers easily, you will need to get Airwallex’s API credentials as well as Webhook Secret Key from your Airwallex account.

Webhooks are used by Airwallex to communicate with your site. It provides information such as the status of the payment, and updates the order based on events associated with the payment.

To obtain the required credentials and assuming you have created your Airwallex account, please follow the steps below:

  • Log into Airwallex Web App, go to: Account > Developer in the Navigation Bar.
  • You then will be able to see and copy the required API credentials from the Developer Keys section and Webhook Secret Key from the Webhook section to the required fields within the plugin's Airwallex API settings. For Webhook Secret Key, you will first need to click reveal button and then enter your Airwallex account password to be able to copy and paste. API key Webhook key Webhook key reveal

Capture Payments

If you untick the Capture Immediately checkbox during configuration for the chosen payment method, and wish to capture charges later, you need to take the following steps:

  • On your WordPress site, go to: WooCommerce > Orders, you will be able to see the order right after the shopper initiates the payment. If the payment is not yet completed by the shopper, the order status will display Pending payment as in the screenshot below.

order status

  • Order status will be shifted to Processing after the shopper completes payments successfully.

processing status

  • Click order to see the order details and take certain actions on the order e.g. shift order status, change billing and shipping address etc.

Edit order*

  • When the order status is shifted to the capture status you configured within the plugin, the payment associated with the order will be captured (e.g. if you configure capture status as Completed and change the order status from Processing to Completed, payment capture for for the order will be initiated accordingly).
Note

Order status is managed by WooCommerce and is not related to payment status on Airwallex’s side of things. It is only used to trigger certain events such as payment capture.

Transaction Management

In your Airwallex account on the WebApp, you will be able to see the performance of received payments at both holistic and granular transaction levels. For each order placed on your WordPress website, you will be able to see the record of the associated payment and take certain actions when applicable.

If you are not familiar with our WebApp, please refer to this User Guide link to take most advantage of your account and manage your funds efficiently.