【发布时间】:2021-03-19 17:32:21
【问题描述】:
我正在使用我的 paypal 沙箱,并且我正在尝试使用 v2/vault/payment-tokens API 来标记信用卡
网址:https://api.sandbox.paypal.com/v2/vault/payment-tokens 方法:POST
RequestBody(沙盒生成的假信用卡):
{
"source": {
"card": {
"number": "40320382525xxxx",
"expiry": "2022-11"
}
}
}
我可以确保我的沙盒有完整的范围,我的访问令牌是正确的。
以下是回复:
{
"name": "UNPROCESSABLE_ENTITY",
"message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
"debug_id": "15c1b3e9d8161",
"details": [
{
"issue": "UNKNOWN_BUSINESS_ERROR",
"description": "There was an issue while processing your request."
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/vault/v2/#error-UNKNOWN_BUSINESS_ERROR",
"rel": "information_link",
"method": "GET"
}
]
}
有人遇到同样的问题吗?
【问题讨论】:
标签: paypal paypal-sandbox paypal-rest-sdk