2012-01-10 32 views
1

某些瀏覽器在付款給非https頁面後貝寶(自動)返回客戶時顯示安全警告。這很煩人。已經給出的明顯解決方案是獲得https證書。貝寶http/https安全警告返回(再次):從貝寶沒有表單數據?

我承擔麻煩來自貝寶提交表格數據的回報。

是否有可能告訴paypal返回客戶沒有任何帖子/獲取數據?然後警告不應該出現。無論如何,以post/get身份進入的客戶數據並不可靠。在我的情況下,客戶識別甚至不是必要的(簡單的「謝謝」就足夠了),並且可以通過會話完成。

我知道這可能是一個貝寶支持論壇的問題,但我還沒有找到合適的去處。 :)

回答

4

編輯2012-01-24:

,而我認爲這是相當有趣的,下面的作品黑客,我發現通過設置RM到1日正式和更好的解決方案:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0709B

rm
返回方法。 FORM METHOD用於將數據發送到由返回變量指定的URL。

允許的值有:

0 – all shopping cart payments use the GET method 
1 – the buyer’s browser is redirected to the return URL by using the GET method, but no payment variables are included 
2 – the buyer’s browser is redirected to the return URL by using the POST method, and all payment variables are included 

老黑客:
使用JavaScript我發現了一個辦法做到這一點。我把一些JavaScript代碼放在沒有提交數據的情況下送回家的返回URL。

$ p-> add_field('return',「javascript:window.location ='http://mysite.com?p=thanks';」);

貝寶網站需要javascript反正。