Paypal快速结账,无效退货和取消URL - Laravel

时间:2016-02-23 10:31:34

标签: php paypal

我目前正在使用我的laravel应用程序中的Paypal快速结账API,我已经到了一个棘手的问题。我从Paypal获得的数据是:

array:13 [▼
  "TIMESTAMP" => "2016-02-23T10:24:12Z"
  "CORRELATIONID" => "fc57735d8b192"
  "ACK" => "Failure"
  "VERSION" => "104.0"
  "BUILD" => "18316154"
  "L_ERRORCODE0" => "10471"
  "L_ERRORCODE1" => "10472"
  "L_SHORTMESSAGE0" => "Transaction refused because of an invalid argument. See additional error messages for details."
  "L_SHORTMESSAGE1" => "Transaction refused because of an invalid argument. See additional error messages for details."
  "L_LONGMESSAGE0" => "ReturnURL is invalid."
  "L_LONGMESSAGE1" => "CancelURL is invalid."
  "L_SEVERITYCODE0" => "Error"
  "L_SEVERITYCODE1" => "Error"
]

^^如您所见,我收到2个无效的返回和取消网址

的错误

我的网址是:

$requestParams = array(
     'RETURNURL' => 'mindfullness.app/checkout/order-review',
     'CANCELURL' => 'mindfullness.app/checkout'
);

有人有什么想法吗?

感谢您的回答

非常感谢

1 个答案:

答案 0 :(得分:0)

我想通了

我需要添加' http://'到网址

$requestParams = array(
     'RETURNURL' => 'http://mindfullness.app/checkout/order-review',
     'CANCELURL' => 'http://mindfullness.app/checkout'
);