CardOptions class

Options specifically for card payment charges

This class encapsulates all parameters needed for card-based payments, providing a clean interface for card charging operations.

Annotations
  • @Deprecated('CardOptions is deprecated due to PCI DSS compliance ' 'requirements and will be removed in a future version')

Constructors

CardOptions({required String email, required String amount, required Card card, String? pin, String? reference, PaymentMetadata? metadata, String? deviceId})
Parameters:
const

Properties

amount String
Amount in smallest currency unit (kobo, cents, etc.)
final
card Card
Card details including number, CVV, expiry
final
deviceId String?
Optional device identifier for fraud detection
final
email String
Customer's email address
final
hashCode int
The hash code for this object.
no setterinherited
metadata → PaymentMetadata?
Optional additional payment metadata
final
pin String?
Optional PIN for debit cards
final
reference String?
Optional unique transaction reference
final
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