我試圖執行3個經典步驟的支付寶立即購買按鈕自定義變量到「付款完成頁面」不工作
我想實現是有一個ID從步驟1將第3步。我試圖做的是這一領域的插入像「定製」變量:
<input type="hidden" name="custom" value="--Server Code--">
支付寶付款後,貝寶重定向我到我的網頁:
http://www.mysite.cm/tx=blalba?aaaa
在這個網址有沒有自定義字段。如果從API,我聯繫PayPal獲得銷售詳情,我沒有得到任何與我的自定義字段相關的信息。
我在做什麼錯了? 我正在考慮使用cookie的工作,但我更願意以標準方式來完成。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="return" value="testestest">
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal è il metodo rapido e sicuro per pagare e farsi pagare online.">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
我不確定。 '因爲如果我從在線配置中將自定義字段設置爲一個值,我可以在詳細信息和查詢字符串中找到它。問題是從後面的代碼中分配它!我可以繼續使用IPN,但它更「異步」。 –
一個問題,爲什麼你需要自定義變量? – CCamilo
跟蹤特定會話。該過程由以下步驟組成:基於在步驟1收集的數據收集數據,付款,創建文檔。 我需要一個標識符,但我覺得它存儲在cookie或會話中很糟糕! –