VirtualCard¶
Dataclass representing a virtual card returned by card gateways.
paygraph.gateways.base.VirtualCard
dataclass
¶
A virtual card returned by a card gateway.
Attributes:
| Name | Type | Description |
|---|---|---|
pan |
str
|
Primary Account Number (full card number). Treat as sensitive. |
cvv |
str
|
Card Verification Value. |
expiry |
str
|
Expiration date in |
spend_limit_cents |
int
|
Maximum spend limit in cents. |
gateway_ref |
str
|
Unique reference ID from the gateway. |
gateway_type |
str
|
Gateway identifier (e.g. |
Source code in src/paygraph/gateways/base.py
redacted()
¶
Return a copy with the PAN masked, showing only the last 4 digits.
Returns:
| Type | Description |
|---|---|
VirtualCard
|
A new |