Note that there are some explanatory texts on larger screens.

plurals
  1. POpaypal ipn case is not calling in paypal "pay now"
    text
    copied!<p>paypal ipn case is not calling in paypal "pay now". In paypal button the following is set.</p> <pre><code>return : "http://localhost/paypal.php?ch=return" cancel_return : "cancel_return" value="http://localhost/paypal.php?ch=cancel" notify_url : value="http://localhost/paypal.php?ch=ipn" </code></pre> <p>paypal_form.php</p> <pre><code>&lt;form name="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"&gt; &lt;input type="hidden" name="cmd" value="_xclick"&gt; &lt;input type="hidden" name="rm" value="2"&gt; &lt;input type="hidden" name="no_notes" value="1"&gt; &lt;input type="hidden" name="custom" value="1"&gt; &lt;input type="hidden" name="business" value="seller_1309158746_biz@gmail.com"&gt; &lt;input type="hidden" name="return" id="return" value="http://localhost/paypal.php?ch=return"&gt; &lt;input type="hidden" name="cancel_return" id="cancel_return" value="http://localhost/paypal.php?ch=cancel"&gt; &lt;input type="hidden" name="notify_url" id="notify_url" value="http://localhost/paypal.php?ch=ipn"&gt; &lt;input type="image" src="https://www.sandbox.paypal.com/WEBSCR-640-20110429-1/en_GB/i/btn/btn_paynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online."&gt; &lt;img alt="" border="0" src="https://www.sandbox.paypal.com/WEBSCR-640-20110429-1/en_GB/i/scr/pixel.gif" width="1" height="1"&gt; </code></pre> <p> </p> <p>paypal.php</p> <pre><code>&lt;? include('db_connect.php'); $choice=isset($_GET['ch'])?$_GET['ch']:''; switch($choice){ case 'return': print "Thank You For Buying this product,Please Visit Again,If is there any complements Then suggest us.."; break; case 'ipn': $sql="INSERT INTO paypal(add_date) VALUES(now())"; mysql_query($sql); $x = fopen('test1.txt','w+'); $str2 = 'post data:dfydfhgfhjg'; foreach($_POST as $k=&gt;$v){ $str2 .= $k.'--'.$v; } fwrite($x,$str2); fclose($x); break; case 'cancel': print "Thank You for visiting this site,Please inform your friend to buy products through paypal which is easy service... "; break; } ?&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload