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);
Properties
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