簡體   English   中英

PayPal結算后如何通過POST返回?

[英]How to return with POST after PayPal billing?

我創建了下一個表單:

<form name="_xclick" action="https://www.sandbox.paypal.com/webscr" method="post">
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="business" value="team@team.com">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="item_name" value="Subscription">
  <input type="hidden" name="return" value="http://www.my_website.com/<%= params[:locale] %>/success">
  <input type="hidden" name="amount" value="1">
  <input type="image" src="http://www.paypal.com/en_US/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

但是它通過GET請求重定向到我的網站。 付款后如何通過POST請求重定向到我的網站?

當我在PayPal按鈕工廠中創建按鈕時:

<form action="https://www.sandbox.paypal.com/webscr" method="post" target="_top">
  <input type="hidden" name="cmd" value="_s-xclick">
  <input type="hidden" name="hosted_button_id" value="SOME_VALUE">
  <input type="image" src="https://www.paypalobjects.com/en_US/IL/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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

當我單擊“貝寶”按鈕時,單擊“貝寶”按鈕時,我已經設置成功並取消了重定向,但是顯示以下錯誤:

PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.

因此,如何更改我的第一個代碼,使其在計費后執行POST重定向?

您能否檢查“ https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

和“ rm”變量作為解決方案。 並為Paypal付款提交設置隱藏字段值。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM