how to send and receive back the user_id in the success link of payPal? -


i'm confused paypal sequences. want add in website donation paypal link "for members only" it's client demand , want store in db if user have made donation or not , how much. using in website link https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6senm6tba5epl means have account on paypal , have created button id "6senm6tba5epl". know button config. in paypal site can set cancel , success links,it's ok. want send user_id , receive paypal variable on success link if donation made.

so it's add url variable https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6senm6tba5epl&user_id=123

or can use paypal form

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="user_id" value="123"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="6senm6tba5epl"> <input type="image" src="https://www.paypalobjects.com/fr_fr/fr/i/btn/btn_donate_lg.gif" border="0" name="submit" alt="paypal - la solution de paiement en ligne la plus simple et la plus sécurisée !"> </form> 

you use custom variable pass through variable. far getting information back, can either have returned through ipn, pdt, or using rm variable. posted more detail on ipn , pdt on forum posting here.

<input type="hidden" name="custom" value="blah blah"> 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -