Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 27th, 2012  |  syntax: None  |  size: 1.59 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. paypal IPN not sending any notification
  2. session_start();
  3. if($mode=='live')
  4. {
  5.     $url=" https://www.paypal.com/cgi-bin/webscr";
  6.     $email="nnnnnnn_singh@live.com";
  7.     $_SESSION['url']=$url;
  8.     $_SESSION['email']=$email;
  9.     $_SESSION['subtotal']=$subtotal;
  10. }
  11. else if($mode=='sandbox')
  12. {
  13.     $url= "https://www.sandbox.paypal.com/cgi-bin/webscr";
  14.     $email="nnnnnnn_1329707350_biz@gmail.com";
  15.     $_SESSION['url']=$url;
  16.     $_SESSION['email']=$email;
  17.     $_SESSION['subtotal']=$subtotal;
  18. }
  19. ?>
  20.  
  21.                 <form action="<?php echo $url; ?>" method="post">
  22.                 <input type="hidden" name="cmd" value="_xclick"/>
  23.                 <input type="hidden" name="business" value="<?php echo $email; ?>"/>
  24.                 <input type="hidden" name="item_name" value="shopping cart"/>
  25.                 <input type="hidden" name="currency_code" value="GBP"/>
  26.                 <input type="hidden" name="amount" value="<?php echo $subtotal;?>"/>
  27.                 <input type="hidden" name="return" value="<?php echo SITE_URL; ?>"/>
  28.                 <input type="hidden" name="cancel_return" value="<?php echo SITE_URL."/shoppingCart.php" ?>"/>
  29.                 <input type="hidden" name="notify_url" value="php url" />
  30.                 <input type="hidden" name="rm" value="2"/>
  31.                 <input type="hidden" name="custom" value="<?php echo $customer_ID;?>"/>
  32.                 <input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/>
  33.                 </form>
  34.        
  35. <input type="hidden" name="notify_url" value="php url" />