Checkout class

Checkout is the Class that gives access the the different tokenization options using the Checkout.com API

Once you create an instance of this class, you can use it like this:

var cko = new Checkout(publicKey: "your_public_key_here");
var res = await cko.tokenizeCard(request);
var res = await cko.tokenizeApplePay(request);
var res = await cko.tokenizeGooglePay(request);

Constructors

Checkout({required String publicKey})
A public key is required to initialize the SDK

Properties

hashCode int
The hash code for this object.
no setterinherited
publicKey String
The public key associated with your Checkout.com account.
getter/setter pair
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
tokenizeApplePay(ApplePayTokenizationRequest request) Future<WalletsTokenizationResponse>
Tokenize apple pay payload
tokenizeCard(CardTokenizationRequest request) Future<CardTokenizationResponse>
Tokenize card details
tokenizeGooglePay(GooglePayTokenizationRequest request) Future<WalletsTokenizationResponse>
Tokenize google pay payload
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

LIVE_BASE_URL String
The base url for the live API
final
MBC_LIVE_PUBLIC_KEY_REGEX RegExp
The regex for the live MBC key
final
NAS_LIVE_PUBLIC_KEY_REGEX RegExp
The regex for the live NAS key
final
SANDBOX_BASE_URL String
The base url for the sandbox API
final

Static Methods

getEnvironment(String key) String
Determines the API URL to use for the environment the the key belongs to