Desktop/Mobile Website Browser
Accept Atome payments on your website by redirecting the shopper to Atome.
See checkout process below:
- The shopper chooses to pay with Atome on the checkout page.
- The shopper is redirected to Atome authentication page where they log into their Atome account.
- The shopper completes the payment.
- The shopper is redirected to the return URL you designated.
Step 1. Initialize a payment Intent
Create a PaymentIntent object with a request_id
, amount
, currency
and a merchant_order_id
from your backend server. Please note that the product
and shipping
parameters are also required for risk scanning purposes on the Atome side.
Step 2. Redirect to Atome to complete payment
When a shopper selects to pay with Atome on their desktop/mobile browser, call the following API endpoints to get the URL which you can use to redirect the shopper to Atome pages to complete the payment.
1. Obtain URL from Airwallex and redirect shopper to Atome
Request:
The shopper_phone
should be formatted in E.164 standard. E.g. Singapore phone number +6580001500
Response:
2. Wait for notification from Airwallex
Airwallex will notify you on the payment result asynchronously via the webhook API. Please refer to webhook documentation to set up your webhook accordingly. Although subscribing to different events is optional, it is recommended to at least subscribe to the ‘payment_intent.succeeded’ which indicates that the shopper has successfully paid for the order via Atome.
3. Query the PaymentIntent status
You may also query the status of a payment anytime via the PaymentIntents API
Sandbox test credentials
Atome payment tests can only be conducted in Atome’s sandbox environment. Use the following credentials for testing:
ID | Mobile | OTP | Country Code |
---|---|---|---|
U621f38de688b5935d652a102 | +6580000079 | 9863 | SG |
U621f38de688b5935d652a104 | +60120000075 | 5894 | MY |
U621f38de688b5935d652a106 | +85250000067 | 4320 | HK |
U621f38de688b5935d652a108 | +62811000038 | 0787 | ID |
U621f38de688b5935d652a10a | +66800000032 | 9786 | TH |
U621f38de688b5935d652a10c | +639730000038 | 0174 | PH |