我有一个产品,这是一个动态创建的文件,我需要一个paypal来完成付款后返回给客户的文件地址。 简单的立即购买按钮是优雅,但如果我把paypal动态返回地址
<input type="hidden" name="return" value="http://www.mysite.com/x727x7e.dat">
成一个按钮的代码,简单的浏览器的页面 - 查看源代码可以在付款前透露的文件地址。
这里是按钮的代码示例:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="return" value="http://www.mysite.com/x727x7e.dat">
<input type="hidden" name="cancel_return" value="http://www.mysite.com/nothanx.html">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="1111111111">
<input type="image" src="https://www.paypal.com/en_AU/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1"></form>
我认为正确的方法是使用贝宝的API,并生成该文件的交易已经sucessfull后,但因为我是小白到PayPal,是想知道这可以用优雅的方式解决吗?
我可以制作一个(asp.net c#)按钮,使用此参数的post方法到paypal,以便客户不可见返回url?
另请参阅此问题http://stackoverflow.com/questions/638114/how-can-i-integrate-paypal-with-asp-net – devio 2009-05-27 13:28:38