Help with PayPal IPN verification

Hello guys,

I need some help with PAYPAL IPN system . I am completely lost.

I setup this form

<form class="checkout-form" name="checkout-form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST"><ul class="notices-box"></ul><div class="row"><div class="col-md-8"><h2>Order Details</h2><div class="setting"><div class="setting-label"></div><input type="text" name="first_name" placeholder="First Name..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="last_name" placeholder="Last Name..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="user_address" placeholder="Address..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="user_country" placeholder="Country..."/></div><div class="setting"><div class="setting-label"></div><input type="text" name="user_telephone" placeholder="Telephone..."/></div><div><input type="hidden" name="action" value="checkout"/><button name="submit" class="button-primary button-primary-for-checkout" style="width: auto; ">Place Order</button></div></div><!--end .part1.1--><div class="col-md-4 checkout-cart-details"><div class="sidebar-fullbg"></div><h2>Cart Contents</h2><div class="cart-item"><div class="cart-item-thumb" style="background-image: url(img/f1.jpg);"></div><div class="cart-item-content"><span class="cart-item-label">Song 2</span><span class="cart-item-quantity">2 x</span> <span class="cart-item-price">$100</span><div class="cart-delete-item-btn"><i class="fa fa-times"></i></div></div></div><div class="cart-subtotal-con">Subtotal, <strong>$100</strong></div></div><!--end .part1.3--></div><!--end .row--><INPUT TYPE="hidden" name="cmd" value="_notify-validate"><INPUT TYPE="hidden" NAME="return" value="http://zoomthe.me/paypalipn/paypal_ipn.php"><INPUT TYPE="hidden" NAME="currency_code" value="USD"><input type="hidden" name="amount" value="0"><input type="hidden" name="email" value=""><input type="hidden" name="business" value="zoomitflash-facilitator-1@gmail.com">
<input type="hidden" name="item_name" value="hat">
<input type="hidden" name="item_number" value="15"></form>

Here - http://zoomthe.me/soundportal//index.php?page=checkout

But when accesing the paypal site I get a big INVALID :frowning:

Haha nice error message. I’ll jump on a computer soon and check it out

1 Like

Thanks man!

It would really be nice to get help from a guru like you.

Also if the $_POST[‘email’] being blank is one of the issues, you can just create a account here ( http://zoomthe.me/soundportal//index.php?page=register ) no need for a real email. Then when logged in, the email would appear.

Never mind guys,

I figured it out.

You have to very carefully construct the FORM element, and inputs. Paypal API is pretentious.

Also the cmd must be set to _xclick

Thank you!

1 Like