我有一個產品,這是一個動態創建的文件,我需要一個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