Desktop/Mobile Website Browser
Accept Airwallex Pay on your website by redirecting your shopper to Airwallex Pay pages. The checkout process is as follows:
- The shopper selects Airwallex Pay option on the checkout page.
- The shopper is redirected to Airwallex Pay login page.
- The shopper enters required information and logs in.
- The shopper is redirected to the confirmation page containing the payment result.
- The shopper is redirected back to your website.
Step 1. Create a PaymentIntent
Create a PaymentIntent object with a request_id
, amount
, currency
and merchant_order_id
from your backend server.
Step 2. Redirect to Airwallex Pay to complete the payment
When a shopper selects to pay with Airwallex Pay on their desktop browser, call Confirm a PaymentIntent API to get the URL used to redirect the shopper to Airwallex Pay pages to complete the payment.
- Obtain URL from Airwallex and redirect the shopper to Airwallex Pay
Request
Response
- Wait for notification from Airwallex
Airwallex will notify you on the payment result asynchronously via the webhook API. See webhook documentation to set up your webhooks accordingly. While you can subscribe to all events, it is recommended that you at least subscribe to payment_intent.succeeded
event, which indicates that the shopper has successfully paid for the order via Airwallex Pay.
- Query the PaymentIntent status
You may also query the status of a payment anytime via Retrieve a PaymentIntent API