Save Card
POST https://api.stage.localpayment.com/api/card
Path Parameters
name*
String
INDIVIDUAL/COMPANY name. Required if token not present.
number*
String
Card number (PAN). Required if token not present.
cvv*
String
Card Verification Value. Required if token not present.
expirationMonth*
String
Card expiration month. Format MM.Required if token not present.
expirationYear*
String
Card expiration year. Format YYYY. Required if token not present.
token*
String
Temporary credit card token created using
{
"card": {
"token": "PIYld5%2BSmrWRcsSwDtAsnrWy2CTrOJiJIun4PerKpbo%3D",
"bin": "123488",
"brand": "UATP",
"country": "CN",
"name": "Payer's name",
"last4": "6486",
"expirationYear": 2027,
"expirationMonth": 6
},
"errors": []
}{
"errors": [
{
"code": "809",
"description": "Rejected",
"detail": "Invalid card number length"
},
{
"code": "801",
"description": "Rejected",
"detail": "Params error card "
},
{
"code": "803",
"description": "Rejected",
"detail": "Invalid card cvv"
},
{
"code": "801",
"description": "Rejected",
"detail": "Params error card number, invalid format "
},
{
"code": "801",
"description": "Rejected",
"detail": "Params error expiration, already expired "
}
]
}Example: Save Card
To create a save card, the request body examples are detailed below.
Example: Save card token + CVV only once
In this request example, it is required to send the token generated when saving the card and the CVV to validate the operation. This action is performed only once, after that you only have to send the token.
Last updated
Was this helpful?