Native UI integration
Airwallex iOS SDK provides native UI screens to facilitate the integration of payment functions. You can use the prebuilt payment flow to present payment flow to your shopper and the edit shipping info flow to manage shipping info of the order.
Payment flow
General steps for initiating a one-off payment (guest user checkout) and retrieving the payment result are as follows:
- (Optional) Create a Customer API if you want to save your customer's details and attach payment information to them. Note that this step is compulsory when you process recurring payment for a new customer.
- Create a Payment Intent API on your server and pass it to your client.
- Create a payment session with the corresponding payment type and order information.
- Present payment flow by passing payment session to the Airwallex iOS SDK.
- Query and present payment result in callback functions.
See integration steps for Apple Pay, Card, Redirect.
When incorporating the WeChat Pay module, you will need to implement another callback function onResp
declared by WeChat SDK to check the payment result. This function will be invoked when the shopper completes the payment in WeChat app and gets redirected back to your app.
For recurring payments, see iOS recurring payments integration guide.
Edit shipping info flow
Use AWXShippingViewController
to allow users to provide a shipping address as well as select a shipping method. The shipping parameter is optional. After successfully saving the shipping details, it will return a shipping object.
Custom theme
You can overwrite the color value in your app to customize the theme of SDK pages.