html - Dynamic redirect url for PayPal Buy Now button -


i have integrated paypal buy button on site follows:

<form name="_xclick" action="https://www.paypal.com/uk/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="receiver@receiver.com"> <input type="hidden" name="currency_code" value="usd"> <input type="hidden" name="item_name" value="description here"> <input type="hidden" name="amount" value="100"> <input type="image" src="https://www.paypalobjects.com/en_us/nl/i/btn/btn_buynowcc_lg.gif" border="0" name="submit" alt="make payments paypal - it's fast, free , secure!"> </form> 

upon succesfull purchase, redirect user page (not known in advance - dynamic). how can achieved?

you need set "return" field in form. this:

<input type="hidden" name="return" value="urlspecifictothistransaction"> 

for more information please visit documentation here


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -