[英]How to integrate paypal in laravel
when PayPal form request in controller error occurs this当 controller 中的 PayPal 表单请求发生此错误时
Object of class Illuminate\Routing\Redirector could not be converted to string
Error in Controller I think this function create error setExpressCheckout() Controller 中的错误我认为这个 function 创建错误 setExpressCheckout()
$provider = new ExpressCheckout;
$response = $provider->setExpressCheckout($data);
$response = $provider->setExpressCheckout($data, true);
return redirect($response['paypal_link']);
Thanks in advance提前致谢
You may redirect to a domain outside of your application by calling the away
method:您可以通过调用
away
方法重定向到应用程序之外的域:
return redirect()->away($response['paypal_link']);
See Laravel docs for more info.有关详细信息,请参阅Laravel 文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.