EN | 中文
Official Airwallex plugin for accepting payments in Flutter apps on Android and iOS. Use the pre-built native checkout UI, or call lower-level APIs with your own screens.
Requirements: Dart ^3.5.3, Flutter >= 3.24.3, iOS 13.0+
- Cards: Visa, Mastercard, Amex, Diners Club, JCB, Discover, UnionPay, Maestro. Integrating card payments without the native UI requires your app to be PCI-DSS compliant.
- E-wallets: Alipay, AlipayHK, DANA, GCash, Kakao Pay, Touch 'n Go, WeChat Pay, and others.
- Apple Pay (iOS)
- Google Pay (Android)
English, Chinese Simplified, Chinese Traditional, French, German, Japanese, Korean, Portuguese (Portugal), Portuguese (Brazil), Russian, Spanish, Thai.
Add the dependency in pubspec.yaml:
dependencies:
airwallex_payment_flutter: ^0.4.0Then run flutter pub get.
On iOS, the plugin supports CocoaPods (default) and Swift Package Manager. To use SPM, enable it once for your Flutter installation:
flutter config --enable-swift-package-managerOn Android, MainActivity must extend FlutterFragmentActivity (not FlutterActivity). See the Quick Start for ProGuard notes and other platform setup.
- Initialize the SDK once at app startup.
- Create a payment intent on your server, then build a session in Flutter.
- Present the native payment flow (or call a low-level API).
import 'package:airwallex_payment_flutter/airwallex.dart';
import 'package:airwallex_payment_flutter/types/environment.dart';
Airwallex.initialize(environment: Environment.demo);
final result = await Airwallex().presentEntirePaymentFlow(session);Full integration steps, session types, return URLs, Apple Pay / Google Pay, and theming: Quick Start.
A working sample is in example/.
- General issues and feedback: open a GitHub Issue.
- Integration support: pa_mobile_sdk@airwallex.com
See CHANGELOG.md.






