CustomerToken class
Represents a saved customer payment token.
Contains tokenized card information that allows for secure repeat payments without storing sensitive card details. The token can be used instead of card details for subsequent transactions.
Security Features
- No sensitive card data is stored
- Tokens are unique per customer and card
- Can be revoked or expired as needed
Example:
final token = CustomerToken(
cardNumber: '**** **** **** 1234',
customerTokenId: 'token_abc123',
);
Constructors
- CustomerToken.new({required String cardNumber, required String customerTokenId})
- Creates a CustomerToken instance.
- CustomerToken.fromMap(dynamic json)
-
factory
Properties
- cardNumber → String
-
Masked card number for display purposes (e.g., '**** **** **** 1234').
final
- customerTokenId → String
-
Unique token identifier for this saved card.
final
- 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