Cards
Cards
The API allow you to create, update and delete bank cards
.
you can also retrieve a single card or list of cards.
endpoints
POST /v1/cards/
GET /v1/cards/:id
POST /v1/cards/:id
GET /v1/cards
DELETE /v1/cards/:id
add card
Parameters:
Parameter | Type | in | Required | Description |
---|---|---|---|---|
customer | string | body | No | customer id see customer object for more information |
cardNumber | string | body | No | card number |
expMonth | string | body | No | card exp month |
expYear | string | body | No | card exp year |
cvc | string | body | No | card cvc |
test cards
Genuine card information cannot be used in test mode. Instead, use any of the following test card numbers, a valid expiration date in the future, and any random CVC number, to create a successful payment.
- United States
- Canada
- Banana
Number | Brand | Country | CVC | Date |
---|---|---|---|---|
4242 4242 4242 4242 | Visa | United States (US) | Any 3 digits | Any future date |
4000056655665556 | Visa(debit) | United States (US) | Any 3 digits | Any future date |
5555555555554444 | MasterCard | United States (US) | Any 3 digits | Any future date |
5200828282828210 | MasterCard(debit) | United States (US) | Any 3 digits | Any future date |
378282246310005 | American Express | United States (US) | Any 3 digits | Any future date |
6011111111111117 | Discover | United States (US) | Any 3 digits | Any future date |
4000001240000000 | Visa | Canada (CA) | Any 3 digits | Any future date |
4000000760000002 | Visa | Brazil (BR) | Any 3 digits | Any future date |
This is an orange 🍊
This is a banana 🍌
create card
POST /v1/cards/
i.e
note
if you dont' have a customer id , then just pass cards info a new customer will be created and you will get a customer id back.
{
"cardNumber":"4242424242424242",
"expMonth":"8",
"expYear:"23",
"cvc":"567"
}
get card
GET /v1/cards/:id
this will return a single card object
get all cards
GET /v1/cards
note
customer id required , this end point will return all cards of a customer
set default card
delete card