0
我一直在尋找2天的時間來關注如何將我的商家支付網關集成到ubercart中。所以我決定在這裏問一下。如何將第三方商戶支付網關集成到ubercart中
我有下面的代碼從我的商戶爲例:
<form name="payFormCcard" method="post" action=" https://test.MyMerchantGateway.com/ECN/eng/payment/payForm.jsp">
<input type="hidden" name="merchantId" value="1">
<input type="hidden" name="amount" value="3000.0" >
<input type="hidden" name="orderRef" value="000000000014">
<input type="hidden" name="currCode" value="608" >
<input type="hidden" name="successUrl" value="http://www.yourdomain.com/Success.html">
<input type="hidden" name="failUrl" value="http://www.yourdomain.com/Fail.html">
<input type="hidden" name="cancelUrl" value="http://www.yourdomain.com/Cancel.html">
<input type="hidden" name="payType" value="N">
<input type="hidden" name="lang" value="E">
<input type="submit" name="submit">
</form>
請注意,我改變高於實際域安全性的理由。
我想結賬後重定向到https://test.MyMerchantGateway.com/ECN/eng/payment/payForm.jsp
謝謝NMC。我已經成功地實現了你的代碼。關於$ form ['#action'] ='https://test.MyMerchantGateway.com/ECN/eng/payment/payForm.jsp';我添加了一些增值網址。例如:https://test.MyMerchantGateway.com?id = 111,name =「ex .......所有這些值都已經出現在評論頁面上了,我可以知道如何獲得這些值嗎?帖子:http://stackoverflow.com/questions/34348089/array-how-to-retrieve-value – peifa 2015-12-22 08:41:52