如何在交易完成时从Paypal网站获取返回变量 [英] How to get a return variables from Paypal site when transaction complete

查看:89
本文介绍了如何在交易完成时从Paypal网站获取返回变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的apply_paypal.aspx页面中,我已将变量传递给sandbox page.its从apply_paypal.aspx页面获取变量。但我不知道如何从沙箱中获取返回变量...我怎么能这样做.. ..if变量返回到我的success.aspx页面我怎么能在我的代码后面得到...?

PLZ任何人都帮我这么做..?



In my apply_paypal.aspx page i have passed a variables to sandbox page.its get that variables from apply_paypal.aspx page.But i dont know how to get a return variable from sandbox...how can i do that....if variables returned to my success.aspx page how can i get that in my code behind...?
plz anyone help me to do that..?

<form id="form1" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
input type="hidden" name="cmd" value="_xclick" />
        <input type="hidden" name="business" value="ineedsweb-facilitator@gmail.com"/>
        <input type="hidden" name="currency_code" value="USD" />

        <input type="hidden" name="payer_email" value="<%=Request.QueryString["mid"]%>" />
        <input type="hidden" name="item_name" value="<%=Request.QueryString["url"]%>" />
        <input type="hidden" name="amount" value="<%=Request.QueryString["amt"]%>" />
        <input type="hidden" name="rm" value="2" />

        <input type="hidden" name="notify_url" value="http://xxxxxxxxxxxxxx/Submit.aspx" />
        <input type="hidden" name="return" value="http://xxxxxxxxxxxxxx/Paypal_Success.aspx" />
        <input type="hidden" name="cancel_return" value="http://xxxxxxxxxxxxxx/Paypal_Unsuccess.aspx" />
        </form>



我可以很容易地向卖家支付...当交易完成后,页面重定向到我的成功页面...但我如何从paypal获得付款状态,交易ID和其他一些信息..... ??


I can easily paid to seller...when transaction completed then the page redirected to my success page...But how can i get payment status,transaction id and some other information from paypal.....??

推荐答案

永远不会接受来自不安全的代码我们bsite处理任何与真钱有关的事情。

你不知道是谁给你代码,你不知道它做了什么,你不知道它把钱正确地放到了适当的位置。帐户,没有将细节传递给任何第三方。



只能从Paypal获取此类代码 - 否则欺诈范围太大。请记住,如果您的行为被视为疏忽,您个人可能会对丢失的任何款项承担责任 - 从公共论坛获取您的代码肯定会是!



所以和Paypal谈谈,而不是我们......:笑:
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 Paypal - 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!

So talk to Paypal, not us...:laugh:


看到这个



https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments -standard / integration-guide / paymentdatatransfer / [ ^ ]


这篇关于如何在交易完成时从Paypal网站获取返回变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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