Skip to content

About

Flutter library for Airwallex payment acceptance

Resources

Stars

9 stars

Watchers

3 watching

Forks

Repository files navigation

Airwallex Flutter Plugin

Platform Flutter version: 3.24.3 pub package GitHub release license: BSD 3-Clause

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+

Payment methods

  • 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)

Localizations

English, Chinese Simplified, Chinese Traditional, French, German, Japanese, Korean, Portuguese (Portugal), Portuguese (Brazil), Russian, Spanish, Thai.

Installation

Add the dependency in pubspec.yaml:

dependencies:
  airwallex_payment_flutter: ^0.4.0

Then 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-manager

On Android, MainActivity must extend FlutterFragmentActivity (not FlutterActivity). See the Quick Start for ProGuard notes and other platform setup.

Getting started

  1. Initialize the SDK once at app startup.
  2. Create a payment intent on your server, then build a session in Flutter.
  3. 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/.

Screenshots

Feedback

Changelog

See CHANGELOG.md.

About

Flutter library for Airwallex payment acceptance

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages