MercadoPago自定义结帐通过“未找到客户”错误

时间:2018-12-12 03:12:07

标签: javascript mercadopago

我正在与自定义结帐的mercadoPago Api合作。首先,我针对我的访问令牌在mercado Api上创建了一个客户,然后根据信息用户输入即card_number,安全码等创建了一个卡令牌,最后我通过使用客户电子邮件和卡令牌对mercadoPago付款Api发送了发帖请求,但是返回“找不到客户”的错误。

我的请求

{
        "transaction_amount": 100,
        "token": "2fe6477a6b238e2e90b055f5ad1f3735",
        "description": "Title of what you are paying for",
        "installments":1,
        "payment_method_id": "visa",
        "payer": {
            "email" : "test@test.com"
        }

}

,响应为

{
"message": "Customer not found",
"error": "bad_request",
"status": 400,
"cause": [
    {
        "code": 2002,
        "description": "Customer not found",
        "data": null
    }
]

}

网址是

https://api.mercadopago.com/v1/payments?access_token=my_access_token

0 个答案:

没有答案