付款网关中传递参数的问题. [英] issue on parameter passing in payment gateway.

查看:117
本文介绍了付款网关中传递参数的问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我曾经使用c#在ASP.NET中开发了一个应用程序.
在这里,我曾经配置过领先的支付网关之一(例如:paypal等)
当我将几个字段传递给支付网关的那一刻
使用下面的代码,
我的代码是:

Hi everybody,
i have used to developed one application in ASP.NET with c#.
Here i have used to configure one of the leading payment gateway (ex: paypal,etc...)
The moment i have passed few fields to payment gateway
with the given below code,
my code is:

HttpContext.Current.Response.Write("<html><head>");
          HttpContext.Current.Response.Write(string.Format("</head><body onload=\"document.form1.submit()\">"));
          HttpContext.Current.Response.Write(string.Format("<form name=\"form1\" method=\"Post\" action=\"https://xxxxx.com\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"abc\" type=\"hidden\" value=\"1234\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"currencyiso3a\" type=\"hidden\" value=\"rs\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"mainamount\" type=\"hidden\" value=\"" + drpAmount.Text.Trim() + "\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"version\" type=\"hidden\" value=\"1\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"reference\" type=\"hidden\" value=\"" + Session["talkuser_id"].ToString() + "\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"ttid\" type=\"hidden\" value=\"" + ttid + "\">"));
          HttpContext.Current.Response.Write(string.Format("<input name=\"ttkey\" type=\"hidden\" value=\"" + ttkey + "\">"));
          HttpContext.Current.Response.Write("</form>");
          HttpContext.Current.Response.Write("</body></html>");
          HttpContext.Current.Response.End();




但是我的问题是付款网关作为一个跟踪代码发送,它表明,我们已经收到了您发送给我的所有字段,但未收到版本值.
我上面用黑色提到的要求的行.
支付网关响应:

消息:[您的付款有问题:",请验证您的详细信息,然后重试"] [] [] {''版本:无} [u"值( )以10为底的int()的无效文字:''"]

所以这是我的问题,请您查看上面的评论,并让我知道我在上面的错误处在哪里.

感谢所有人....




but my problem is the payment gateway send as one trace code which is stating that, we have received all the fields which you have send to me but except version value is not received.
the requested line i have mentioned above in black color.
payment gateway response:

Msgs: [''There has been a problem with your payment:'', ''Please verify your details and try again''] [] [] {''version'': None} [u"value() invalid literal for int() with base 10: ''''"]

so this is my problem , please have you look at the comments above and let me know where i have made mistake on the above.

thanks to all....

推荐答案

永远不要接受来自不安全网站的代码来处理任何与真钱有关的事情.
您不知道是谁在给您代码,您不知道它是做什么的,您也不知道它是在没有将详细信息传递给任何第三方的情况下将款项正确地放入适当的帐户中的.

仅从您的付款提供商处获得这样的代码-否则欺诈的范围太大.请记住,如果您的行为被视为疏忽大意,您本人应对损失的任何金钱负责-从公共论坛获取您的代码绝对是可以的!
Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from your payment provider - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!


这篇关于付款网关中传递参数的问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆