FlutterCheckoutPayment class

Constructors

FlutterCheckoutPayment()

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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generateApplePayToken({required String paymentDataBase64}) Future<CardTokenisationResponse?>
Generate Apple Pay Token. See https://api-reference.checkout.com/#operation/requestAToken type --> apple_pay
generateGooglePayToken({required String tokenJsonPayload}) Future<CardTokenisationResponse?>
Generate Google Pay Token. See https://api-reference.checkout.com/#operation/requestAToken type --> google_pay
generateToken({required String number, required String name, required String expiryMonth, required String expiryYear, required String cvv, BillingModel? billingModel}) Future<CardTokenisationResponse?>
Generate Token.
handle3DS({required String authUrl, required String successUrl, required String failUrl}) Future<String?>
Open a WebView to allow the user to pass a 3DS challenge. success and failUrl should match what you have configured elsewhere!
init({required String key, Environment environment = Environment.SANDBOX}) Future<bool?>
Initialize Checkout.com payment SDK.
isCardValid({required String number}) Future<bool?>
Check if card number is valid.

Constants

CHANNEL_NAME → const String
The channel name which it's the bridge between Dart and JAVA or SWIFT.
GENERATE_TOKEN_ERROR → const String
HANDLE_3DS_ERROR → const String
INIT_ERROR → const String
Error codes returned to Flutter if there's an error.
IS_CARD_VALID_ERROR → const String
METHOD_GENERATE_APPLE_PAY_TOKEN → const String
METHOD_GENERATE_GOOGLE_PAY_TOKEN → const String
METHOD_GENERATE_TOKEN → const String
METHOD_HANDLE_3DS → const String
METHOD_INIT → const String
Methods name which detect which it called from Flutter.
METHOD_IS_CARD_VALID → const String