php - paypal website form return parameters with link and auto return -


i choose "on" auto return selling tools: https://www.paypal.com/webapps/customerprofile/

but auto return not working! why?

and form:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">         <input type="hidden" name="business" value="example@mail.com">         <input type="hidden" name="cmd" value="_xclick">                       <input type="hidden" name="item_name" value="<?php echo $name; ?>">         <input type="hidden" name="item_number" value="<?php echo $id; ?>">         <input type="hidden" name="amount" value="0.01">         <input type="hidden" name="quantity" value="1">         <input type="hidden" name="return" value="http://example.com/done.php">         <input type="hidden" name="cancel_return" value="http://example.com/cancel.php">         <input type="submit" name="submit" value="buy">     </form> 

now return page not has parameters this: http://example.com/done.php?tx=xxxx&st=completed&amt=200.00&cc=usd&cm=&item_number=7

i need auto return , paramteres!

help me.

  • most likely, did not enable payment data transfer(pdt).

  • you enabled pdt, if transaction made via credit card, need manually click on "return merchant site" link redirected return url means auto-return works if payment made via paypal account.

steps enable pdt

-login paypal account

-click on profile

-click 'my selling preferences

-click on update next website preferences

-go payment data transfer section

-choose payment data transfer on , token displayed below

pdt sample codes


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -