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 start
Native 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

Before you start

Follow these steps to set up Airwallex iOS SDK.

Requirements

  • Requires Xcode 15.4 or later and is compatible with apps targeting iOS 13 or above
  • Available through Swift Package Manager and CocoaPods . Please install the latest version of CocoaPods to ensure you can add Airwallex SDK to your application.

Step 1: Set up SDK

Swift Package Manager

Airwallex for iOS is available via Swift Package Manager. To integrate it into your project, follow these steps:

  1. Follow Apple's guide on how to add a package dependency in Xcode.

  2. Use the following URL for the Airwallex package: https://github.com/airwallex/airwallex-payment-ios

  3. Ensure you specify version 6.1.1 or later.

You can add Airwallex for a comprehensive integration that includes everything except WeChat Pay. Alternatively, you can selectively add specific products to your project for a more modular setup, depending on your payment needs:

  • AirwallexPaymentSheet: For UI integration. 
  • AirwallexPayment: For low-level API integration.
  • AirwallexWeChatPay: Required for WeChat Pay integration.

CocoaPods

Airwallex for iOS is available via CocoaPods .

You can add Airwallex for a comprehensive integration that includes everything except WeChat Pay:

Ruby

Alternatively, you can selectively add specific products to your project for a more modular setup, depending on your payment needs:

Ruby

Run the following command:

Ruby

Step 3: Configure SDK

  1. Import the module where you want to use the Airwallex iOS SDK
swift
  1. Configure the working mode for SDK and the client secret

When your app starts:

  • Set the mode for SDK to connect with different Airwallex server environments.
swift
swift
Was this page helpful?
On this page
Was this page helpful?