我正在使用我的paypal沙箱,并尝试使用v2/vault/payment-tokens 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"
}
]
}有没有人遇到同样的问题?
发布于 2020-12-09 17:00:41
您是否有权限在实时模式下使用/v2/vault/payment-tokens?如果没有PayPal的指导,就不能集成此接口
尝试使用https://developers.braintreepayments.com/guides/credit-cards/testing-go-live/node的测试信用卡
https://stackoverflow.com/questions/65198183
复制相似问题