首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Paypal创建支付令牌API返回422无法处理的实体

Paypal创建支付令牌API返回422无法处理的实体
EN

Stack Overflow用户
提问于 2020-12-08 19:37:04
回答 1查看 262关注 0票数 0

我正在使用我的paypal沙箱,并尝试使用v2/vault/payment-tokens API来标记信用卡

Url:https://api.sandbox.paypal.com/v2/vault/payment-tokens方法: POST

RequestBody(沙箱生成的假信用卡):

代码语言:javascript
复制
{
    "source": {
        "card": {
            "number": "40320382525xxxx",
            "expiry": "2022-11"        
            }
    }
}

我可以确保我的沙箱具有完整的作用域,我的访问令牌是正确的。

以下是响应:

代码语言:javascript
复制
{
    "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"
        }
    ]
}

有没有人遇到同样的问题?

EN

回答 1

Stack Overflow用户

发布于 2020-12-09 17:00:41

您是否有权限在实时模式下使用/v2/vault/payment-tokens?如果没有PayPal的指导,就不能集成此接口

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65198183

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档