Skip to content

Commit

Permalink
Card details
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc committed Jan 25, 2024
1 parent 6947661 commit bdc8305
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions ecosystem/sep-0009.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ applications use fields that are the most familiar, which are often specific to
| `cbu_alias` | string | The alias for a Clave Bancaria Uniforme (CBU) or Clave Virtual Uniforme (CVU). |
| `crypto_address` | string | Address for a cryptocurrency account |
| `crypto_memo` | string | A destination tag/memo used to identify a transaction |
| `card_details` | object | Details of the user's card. See the [card object schema](#card-object) for details |

## Organization Fields

Expand Down Expand Up @@ -149,7 +148,7 @@ single multi-line string in the `address` field. This allows any address in the
number of fields. If address parsing is necessary, parsing will be easier since the country, city, and postal code are
already separate fields.

## Card object
## Card fields

To pass card (such as credit card) details to the application, the client should pass card details via an object defined
below. Note, that it's possible to either pass card details to the application, or the token, representing the card.
Expand All @@ -159,20 +158,20 @@ be used. When token is used, application should notify clients about the type of
receive. Usually, application would require either `token`, or set of: `number`, `expiration_date`, `cvc` and
`holder_name` to be provided, but some applications may require extra fields.

| Name | Type | Description |
| ------------------- | ------ | ------------------------------------------------------------------------------------------- |
| `number` | number | Card number |
| `expiration_date` | date | Expiration month and year (e.g. `11-29`, November 2029) |
| `cvc` | number | CVC number (3 digits on the back of the card) |
| `holder_name` | string | Name of the card holder |
| `type` | string | Type of the bank card used (e.g. debit, credit) |
| `brand` | string | Brand of the card (e.g. Visa, Mastercard) |
| `postal_code` | string | Post or other code used by the card for the billing purposes |
| `country_code` | string | Country code used by the card for the billing purposes |
| `state_or_province` | string | Name of state/province/region/prefecture |
| `city` | string | Name of city/town |
| `address` | string | Entire address (country, state, postal code, street address, etc...) as a multi-line string |
| `token` | string | Token representation of the card in some external payment system (e.g. Stripe) |
| Name | Type | Description |
|--------------------------| ------ | ------------------------------------------------------------------------------------------- |
| `card.number` | number | Card number |
| `card.expiration_date` | date | Expiration month and year (e.g. `11-29`, November 2029) |
| `card.cvc` | number | CVC number (3 digits on the back of the card) |
| `card.holder_name` | string | Name of the card holder |
| `card.type` | string | Type of the bank card used (e.g. debit, credit) |
| `card.brand` | string | Brand of the card (e.g. Visa, Mastercard) |
| `card.postal_code` | string | Post or other code used by the card for the billing purposes |
| `card.country_code` | string | Country code used by the card for the billing purposes |
| `card.state_or_province` | string | Name of state/province/region/prefecture |
| `card.city` | string | Name of city/town |
| `card.address` | string | Entire address (country, state, postal code, street address, etc...) as a multi-line string |
| `cardtoken` | string | Token representation of the card in some external payment system (e.g. Stripe) |

## Changelog

Expand Down

0 comments on commit bdc8305

Please sign in to comment.