|
查看: 1256|回复: 8
|
我需要如何编写我的result page呢? 求助!
[复制链接]
|
|
|
小弟要尝试integrate payment gateway 去我的system...以下是payment gateway公司提供的tutorial... 就完成交易后所return的variable...
但是我不是很懂如何获取variable 'response' & 'invoiceNo' 我需要如何编写我的result page呢?
PaymentGateway sends a response to Merchant in a single result string with the formtag "result" in HTML FORM POST with parameters as per Table 2 below.
| Sr. | Variable Name | Data Type | Length | Description | | 1 | response | Character | 2 | Response Code; Example: 00 = Approved, 01 = Not Approved, etc.
| | 2 | authCode | Character | 6 | Authorize Code; Example: 654321 | | 3 | invoiceNo | Character | 20 | Invoice No; Unique number to refer to a transaction; Example: Invoice No. is P14780 Send from PBB to Merchant in result string as “00000000000000P14780” |
|
|
|
|
|
|
|
|
|
|
|
发表于 5-1-2012 06:30 PM
|
显示全部楼层
你用的是什么payment gateway? ipay88? netbuilder?
不是很懂如何获取1&3,那2你如何获取?还是你的意思是说不懂如何用所得到的variable? |
|
|
|
|
|
|
|
|
|
|
发表于 5-1-2012 10:38 PM
|
显示全部楼层
回复 1# counterking
PaymentGateway sends a response to Merchant in a single result string with the formtag "result" in HTML FORM POST with parameters as per Table 2 below.
赞同楼上的My2ndLove,你会拿2不会拿1&3?还是你不清楚拿回来的result代表什么?
-=Example=-
JSP : requset.getParameter("response");
PHP : $_POST['response'] |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 5-1-2012 10:47 PM
|
显示全部楼层
回复 3# algorithm
你好,我是不懂得如何拿以上所有的variable...
我是用asp.net
request.querystring("response") 是没有东西的。。。
而且我不是很明白红色的那段
PaymentGateway sends a response to Merchant in a single result string with the formtag "result" in HTML FORM POST with parameters |
|
|
|
|
|
|
|
|
|
|
发表于 5-1-2012 11:03 PM
|
显示全部楼层
本帖最后由 algorithm 于 5-1-2012 11:12 PM 编辑
回复 4# counterking
如果我没有解读错,应该类似如下的response:
<form action="your_response_page.asp" method="post">
<input type="text" name="response" value="00" /><br />
<input type="text" name="authCode" value="65432" /><br />
<input type="text" name="invoiceNo" value="00000000P14780" /><br />
</form>
既然你能够读到2但不能读到1&3,应该问那个PG是不是有什么问题。btw查看有没有syntax,spelling,case的error。
抱歉没有看清楚你的回答。但是我不会asp,帮不到你。 |
|
|
|
|
|
|
|
|
|
|
发表于 5-1-2012 11:06 PM
|
显示全部楼层
回复 5# algorithm
single result string <<< 有可能是GET不是POST。 |
|
|
|
|
|
|
|
|
|
|
发表于 14-2-2012 04:02 PM
|
显示全部楼层
回复 algorithm
你好,我是不懂得如何拿以上所有的variable...
我是用asp.net
request.querys ...
counterking 发表于 5-1-2012 10:47 PM 
那个PAYMENT GATEWAY。。 把他们process的结果。。用POST的方式。。Return to a URL you prefer.
Return Variable 是用"LIST"的方法来排列? |
|
|
|
|
|
|
|
|
|
|
发表于 14-2-2012 05:38 PM
|
显示全部楼层
本帖最后由 小陈陈 于 14-2-2012 05:40 PM 编辑
如果没有记错。。。
只有paypal是用你指定的url来post回哪个payment result给你。然后他之后会redirect回去你的website
如果是其他的payment gateway(netbuilder/ipay88)会return回一个你指定的url with 那些payment results/variables 给你。然后你就需要check那些var咯
其中一个var会return 00 给你来告诉你payment success
但是你还是需要来check那些回来var对不对和有个 key 来给你verify的
小的我不才
做过paypal,netbuilder,ipay88 和 HSBC 的 payment gateway
但是都是用php的。 |
|
|
|
|
|
|
|
|
|
|
发表于 15-2-2012 06:51 PM
|
显示全部楼层
回复 algorithm
你好,我是不懂得如何拿以上所有的variable...
我是用asp.net
request.querys ...
counterking 发表于 5-1-2012 10:47 PM 
拿 Form Post 的 output 是用 Request.Form,不是 Request.QueryString |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|