PaymentMethod
The PaymentMethod object contains card details and is used in the following methods:
It supports both new cards (where the raw card number and details are provided) or existing cards (where a Fat Zebra card token is provided).
Pay with a new card
Attribute | Type | Description |
---|---|---|
| string | Specify the following value: |
| string | Card number |
| string | Card holder name |
| string | Expiry month |
| string | Expiry year |
| string | CVV or CVC value on the card |
{
type: "card",
data: {
number: "4005550000000001",
holder: "John Doe",
expiryMonth: "03",
expiryYear: "2022",
cvv: "123"
}
}
Pay with an existing card (card on file)
Attribute | Type | Description |
---|---|---|
| string | Specify the following value: |
| string | Card token. |
{
type: "card_on_file",
data: {
token: "fke8jmra"
}
}
Updated 8 days ago