PayPal付款执行错误:此操作不支持方法类型

时间:2018-11-27 13:40:38

标签: php paypal paypal-sandbox

当我们尝试完成PayPal付款时,出现错误。

卷曲网址

  

https://api.sandbox.paypal.com/v1/payments/payment/PAY-6919774712486433JLP6PPIQ/excute/

HTTP Headers
Content-Type: application\/json","Authorization: Bearer A21AAHreFxxtc86Y_27nsOJp9e"

Data
{"payer_id":"LUQRF5YkjhXG6"}

Error
{
    "name": "MALFORMED_REQUEST",
    "message": "Method type not supported for this operation",
    "information_link": "https:\/\/developer.paypal.com\/webapps\/developer\/docs\/api\/#MALFORMED_REQUEST",
    "debug_id": "dd9ba4864e05c"
}

1 个答案:

答案 0 :(得分:1)

您的网址中有错字

应为execute而不是excute

使用:https://api.sandbox.paypal.com/v1/payments/payment/PAY-6919774712486433JLP6PPIQ/execute/