FlutterCheckoutPayment class Null safety

Constructors

FlutterCheckoutPayment()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

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.
"shadyboshra2012/fluttercheckoutpayment"
GENERATE_TOKEN_ERROR → const String
"2"
INIT_ERROR → const String
Error codes returned to Flutter if there's an error.
"1"
IS_CARD_VALID_ERROR → const String
"3"
METHOD_GENERATE_TOKEN → const String
"generateToken"
METHOD_HANDLE_3DS → const String
"handle3DS"
METHOD_INIT → const String
Methods name which detect which it called from Flutter.
"init"
METHOD_IS_CARD_VALID → const String
"isCardValid"