FlutterCheckoutPayment class

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
Returns a string representation of this object.
inherited

Operators

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

Static Methods

generateToken({String number, String name, String expiryMonth, String expiryYear, String cvv, BillingModel billingModel}) Future<String>
Generate Token. number The card number. name The card holder name. expiryMonth The expiration month. expiryYear The expiration year. cvv The cvv behind the card. billingModel The billing model of the card.
init({String key, Environment environment: Environment.SANDBOX}) Future<bool>
Initialize Checkout.com payment SDK. key public sdk key. environment the environment of initialization { SANDBOX, LIVE }, default SANDBOX.
isCardValid({String number}) Future<bool>
Check if card number is valid. number The card number.

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_INIT → const String
Methods name which detect which it called from Flutter.
"init"
METHOD_IS_CARD_VALID → const String
"isCardValid"