curl --request POST \
--url https://api.stage.localpayment.com/api/card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"number": "4000000000000002",
"cvv": "123",
"expirationMonth": "11",
"expirationYear": "2028"
}
'
{
"card": {
"token": "xsWMaLcYjS3L11aBwxl465%2F2d8J85FXPAaBFIKfr0Fx%3D",
"bin": "400000",
"brand": "VISA",
"country": "US",
"name": "John Doe",
"last4": "0002",
"expirationYear": 2028,
"expirationMonth": 11
},
"errors": []
}
银行卡
卡片标记化
POST
/
api
/
card
curl --request POST \
--url https://api.stage.localpayment.com/api/card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"number": "4000000000000002",
"cvv": "123",
"expirationMonth": "11",
"expirationYear": "2028"
}
'
{
"card": {
"token": "xsWMaLcYjS3L11aBwxl465%2F2d8J85FXPAaBFIKfr0Fx%3D",
"bin": "400000",
"brand": "VISA",
"country": "US",
"name": "John Doe",
"last4": "0002",
"expirationYear": 2028,
"expirationMonth": 11
},
"errors": []
}
该接口可安全地对卡片进行令牌化处理,用唯一令牌替换敏感的卡片信息。该令牌可用于未来的交易,确保符合安全标准(例如 PCI DSS),并减少存储或处理敏感卡片信息的需要。
授权
请求体
application/json
最后修改于 2026年11月10日

