Airwallex class
Entry point for the Airwallex payment SDK.
Call Airwallex.initialize once at app startup, then use instance methods such as presentEntirePaymentFlow, presentCardPaymentFlow, payWithCardDetails, startGooglePay, or startApplePay to drive individual payments.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payWithCardDetails(
BaseSession session, Card card, bool saveCard) → Future< PaymentResult> - Pays with raw card details collected by the merchant's own UI. The merchant is responsible for PCI compliance when using this method.
-
payWithConsent(
BaseSession session, PaymentConsent consent) → Future< PaymentResult> - Pays using an existing payment consent (a previously saved card).
-
presentCardPaymentFlow(
BaseSession session, {List< CardBrand> ? supportedBrands}) → Future<PaymentResult> - Presents the card-only payment sheet. Use this when the merchant wants to restrict checkout to card payments and skip the payment-method selection screen.
-
presentEntirePaymentFlow(
BaseSession session, {PaymentSheetConfiguration? configuration}) → Future< PaymentResult> - Presents the full Airwallex payment sheet, letting the customer pick any supported payment method (cards, wallets, redirect methods) and complete the payment.
-
startApplePay(
BaseSession session) → Future< PaymentResult> - Starts an Apple Pay payment flow. iOS only.
-
startGooglePay(
BaseSession session) → Future< PaymentResult> - Starts a Google Pay payment flow. Android only.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initialize(
{Environment environment = Environment.production, bool enableLogging = true, bool saveLogToLocal = false}) → void - Initializes the Airwallex SDK. Call this once at app startup before invoking any other payment method.
-
setTintColor(
Color color) → void -
Sets the tint color used by the native payment UI on iOS.
On Android, override the
airwallex_tint_colorresource instead.