使用paypal付款时会返回错误

时间:2018-05-03 10:45:39

标签: php paypal paypal-sandbox paypal-plus

当我使用此API" https://api.sandbox.paypal.com/v1/payments/payment"获得" approval_url"。

它会给出错误:

  

{"名称":" VALIDATION_ERROR""细节":[{"字段":" redirect_urls" "问题":"这   pay_method是' paypal'}#];" message":"无效的字段   请求

     

查看详情    "" information_link":" https://developer.paypal.com/docs/api/payments/#errors"" debug_id":" e48112ca1cd19"}

我已经提到了参数。这是我的阵列。

{  
    "intent":"sale",
    "experience_profile_id":"XP-AAAA-AAAA-AAAA-AAAA",
    "payer":{  
        "payment_method":"paypal"
    },
    "transactions":[  
        {  
            "amount":{  
                "total":"9.00",
                "currency":"EUR"
            }
        }
    ]
},
"redirect_urls":{  
    "return_url":"http://example.com/success",
    "cancel_url":"http:/example.com/error"
}

请告诉我这是什么问题。

提前致谢

0 个答案:

没有答案
相关问题