使用 href 安全支付

Secure payment using href

我正在尝试在 Laravel 5.3 应用程序中实施支付,但我无法安全地进行。我不想与瑞士电子支付公司 Datatrans 合作。 执行付款的代码如下所示:

<html>
<head>
<title>Test redirect</title>
</head>
<body>

<h1>Test redirect</h1>

<a href="https://pilot.datatrans.biz/upp/jsp/upStart.jsp?merchantId=1100004624&refno=1337&amount=1000&currency=CHF&paymentmethod=ECA&paymentmethod=VIS&paymentmethod=AMX&paymentmethod=DIN&paymentmethod=DIS&paymentmethod=PAP&theme=DT2015">Pay</a>
</body>
</html>

如何确保用户无法更改 URL 并将金额参数更改为 1 瑞士法郎? 或者我能以某种方式将用户从控制器重定向到这个 URL 吗?

我现在完全糊涂了。可能比我想象的要容易得多...

您可能想看看 cURL。在这里 link 了解更多信息。 http://codular.com/curl-with-php

使用$_SESSION将您的变量(价格)从一个页面传递到另一个页面

祝你好运

你应该像这样从控制器重定向

return Redirect::to($url);