Airwallex logo
Airwallex logo

SDK examples

This sample app demonstrates integrating with the Airwallex iOS SDK using native UI integration and low-level API integration. To run the example project, you should follow these steps.

Prerequisites

  • Install the latest version of Xcode and iOS SDK from Mac Store.

Clone source code

Run the following script to clone this project to your local disk.

1git clone [email protected]:airwallex/airwallex-payment-ios.git

Install dependencies and open project

  • Go into the project directory
Bash
1cd airwallex-payment-ios
  • Install dependencies
Bash
1pod install
  • Open Airwallex.xcworkspace from Xcode or run the following script to open it. Be sure you always open the project from the work space.
Bash
1open Airwallex.xcworkspace

Configure scheme

The sample app supports two schemes: Airwallex and Examples. You can switch the schemes in project scheme settings.

  • Airwallex will generate a framework for developer.
  • Examples will build and run an example application.

Run the app on your iOS device

Select your target device from the top left panel, then press "Command + R" on your keyboard (or "Product > Run" from the top menu bar) to run this project on your iOS device.

Was this page helpful?