Search...
APIJSLog inGet started
Airwallex logo
Home
Platform APIs
Connected Accounts
Accounts
Payments
Transactional FX
Payouts
Issuing
Back to home
OverviewChoose your payments solutionGet started with payments
Supported currencies
Online payments
Online payments overviewPayment Method Onboarding RequirementGet started with online paymentsHosted Payment Page
Drop-in Element
Embedded Elements
Mobile SDK
Guest user checkout
iOS Airwallex SDK
OverviewBefore you startNative UI integration
Low-level API integrationSDK examples
Android Airwallex SDK
Registered user checkout
Airwallex iOS SDK Privacy Details
Plugins
Native API
Automatic Currency Conversion
Invoice integrations
Tax filing

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:

  1. (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.
  2. Create a Payment Intent API on your server and pass it to your client.
  3. Create a payment session with the corresponding payment type and order information.
  4. Present payment flow by passing payment session to the Airwallex iOS SDK.
  5. 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.

swift

Custom theme

You can overwrite the color value in your app to customize the theme of SDK pages.

swift
Was this page helpful?
On this page
  • Payment flow
  • Edit shipping info flow
  • Custom theme
Was this page helpful?