Cloudpayments class
Contains helpful methods that allow you to check payment card parameters validity and create a card cryptogram.
Constructors
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
-
cardCryptogram(
{required String cardNumber, required String cardDate, required String cardCVC, required String publicId}) → Future< Cryptogram> - Generates card cryptogram.
-
isValidExpiryDate(
String expiryDate) → Future< bool> -
Checks if the given card
expiryDate
is valid and not expired. -
isValidNumber(
String cardNumber) → Future< bool> -
Checks if the given
cardNumber
is valid. -
show3ds(
{required String acsUrl, required String transactionId, required String paReq}) → Future< ThreeDsResponse?> -
Shows 3DS dialog.
ascUrl
,transactionId
,paReq
are returned in response from the Cloudpayments api if a 3DS authentication is needed.