Paypal创建付款以触发API返回422不可处理实体



我正在使用我的贝宝沙箱,我正在尝试使用v2/svault/payment-to-kens API来标记信用卡

Url: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"
}
]
}

有人遇到同样的问题吗?

您是否有权在实时模式下使用/v2/vault/支付代币?如果没有PayPal 的指导,此API不应集成

尝试使用来自的测试信用卡https://developers.braintreepayments.com/guides/credit-cards/testing-go-live/node

最新更新