gateway post_使用自动POST将表单值发送到Payment Gateway页面

gateway post

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered product items details before you do the payment gateway process.

当您使用与购物车/电子商务相关的网站时,您需要将特定的表单发布详细信息传递给付款网关处理页面,其中包含您要订购的产品项目的必需详细信息。 另外,您可能需要在执行付款网关流程之前跟踪订购的产品项目详细信息。

It can be done in the below manner.

可以通过以下方式完成。

On your web site process page, you need to connect with the database and retrieve the products and user details. And then you need to place the payment gateway implementation code in the page with auto post form script written.

在您的网站流程页面上,您需要连接数据库并检索产品和用户详细信息。 然后,您需要将付款网关实施代码放置在写有自动过帐表单脚本的页面中。

So here, we just combine our custom database values with payment gateway implementation script and redirecting to it

因此,在这里,我们仅将自定义数据库值与支付网关实现脚本结合在一起并重定向到该脚本

It will look like the sample code,

它看起来像示例代码,

<?

	your database process... connecting to the db 
	and get the details for the payment gateway page

?>


<html>
		<head><title>Web Site Title</title></head>
	<body>
	<form name="frm1" method="post" action="payment_gateway_url.jsp">
		
		<input type=hidden name="Amount" value="">
		<input type=hidden name="Order_Id" value="">	
			
		<input type=hidden name="Merchant_Id" value="">		

		<input type=hidden name="WorkingKey" value="">	
		
		
		<input type="hidden" name="billing_cust_name" value="echo value"> 
		<input type="hidden" name="billing_cust_address" value="echo value"> 
		<input type="hidden" name="billing_cust_country" value="echo value"> 
		<input type="hidden" name="billing_cust_tel" value="echo value"> 
		<input type="hidden" name="billing_cust_email" value="echo value"> 
		<input type="hidden" name="billing_cust_notes" value="">
		
		<input type="hidden" name="delivery_cust_name" value="echo value"> 
		<input type="hidden" name="delivery_cust_address" value="echo value"> 
		<input type="hidden" name="delivery_cust_tel" value="echo value"> 		
		
		
	</form>
	
	<script language="javascript" type="text/javascript">
		document.frm1.submit();		
	</script>	
	
</body>
</html>

Once you auto posted the values with the required fields to the payment gateway page, you will get response from the gateway page.

将带有必填字段的值自动发布到支付网关页面后,您将从网关页面获得响应。

That's all, now you can verify into your merchant account whether the payment is done or not.

就是这样,现在您可以在商家帐户中验证付款是否完成。

This process helps much to auto post the form field values along with required values to the payment gateway and to keep track the ordered product items details into the database.

此过程有助于将表单字段值和所需值自动过帐到付款网关,并保持将订购的产品项目详细信息跟踪到数据库中。

Enjoy this tip.

享受这个技巧。

翻译自: https://www.experts-exchange.com/articles/219/Sending-Form-Values-to-Payment-Gateway-Page-with-Auto-POST.html

gateway post

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值