创建卡信息
将卡的信息存储在Liquido的服务器上,并返回一个卡的标识,可用于以后付款。
HTTP请求
POST
/v1/payments/vault/card
Request Headers{
"Content-Type": "application/json",
"Authorization": "Bearer {{access_token}}",
"x-api-key": "{{api_key}}"
}
Request Body{
"country": "BR",
"card": {
"cardHolderName": "card_holder_name",
"cardNumber": "4242424242424242",
"expirationMonth": "09",
"expirationYear": "2024",
"cvc": "123"
},
"subMerchantId":"UUID"
}
Response{
"cardId": "123121123",
"card": {
"cardHolderName": "card_holder_name",
"expirationMonth": 9,
"expirationYear": 2024,
"brand": "VISA",
"bin": "458124",
"last4": "0000"
},
"subMerchantId":"UUID"
}
Request Body 字段说明
Card 对象字段说明
Response Body 字段说明
Card (响应)对象字段说明
创建一个卡ID付款的信用卡支付
HTTP请求
POST
/v1/payments/charges/card
Request Headers{
"Content-Type": "application/json",
"Authorization": "Bearer {{access_token}}",
"x-api-key": "{{api_key}}"
}
Request Body{
"idempotencyKey": "1ec983fa-1a37-679b-809b-067861d87ab0",
"amount": 100000,
"currency": "BRL",
"country": "BR",
"paymentMethod": "CARD",
... # other basic request fields
"cardId": "8736453a-dad0-4f26-85f0-95e8787d0237",
}
Response{
"transferStatusCode": 200,
"idempotencyKey": "1ec983fa-1a37-679b-809b-067861d87ab0",
"referenceId": "1ec983fa-1a37-679b-809b-067861d87ab0",
"paymentMethod": "CARD",
"amount": 100000,
"currency": "BRL",
"finalAmount": 100000,
"finalCurrency": "BRL",
"country": "BR",
... # other basic response fields
"transferDetails": {
"card": {
"cardInfo": {
"cardHolderName": "card_holder_name",
"expirationMonth": 9,
"expirationYear": 2024,
"brand": "VISA",
"bin": "458124",
"last4": "0000"
},
"cardId": "8736453a-dad0-4f26-85f0-95e8787d0237"
}
},
}