Where is PayPal's elusive IPN History? -


i have ipn receiver on server receiving ipns , re-posting them paypal's server (https://www.paypal.com/cgi-bin/webscr) validation. testing using ipn simulator , receives invalid. i've done bulk of work , got servers talking. there's bit of fine polishing needed , cannot debug because have no feedback. can feedback?

paypal's docs state following:

"check ipn history on paypal.com. ipn history tells whether paypal sent given ipn message , whether listener responded it. page may provide information status of server on listener running. if necessary, can request paypal re-send given ipn message via ipn history page." -- https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/ipntesting/

so need find ipn history, right? account these ipn logs recorded? include ipns generated using simulator? if not what's point , how dev debug? i've looked in live merchant account, sandbox merchant account, sandbox payer account. there no history of ipns being sent.

just side point: paypal's sandbox nightmare because if log out of 1 sandbox account find @ login page on live site. similarly, cannot login ipn simulator using sandbox merchant account, live merchant account forever having login live merchant send request, logout, login sandbox, check ipn history, find nothing, log out, log in live , repeat until insane. further confuse things, simulator sends ipns address buyer@paypalsandbox.com make mind paypal!!!! ipn simulator part of sandbox or not? once have submitted 1 simulated ipn, resets form values defaults if need enter address of valid sandbox payer account (the docs don't state whether or not do, cluching @ straws here) have copy , paste boxes numerous times per request. please please please paypal, write docs in way can understood not 1 of colleagues. explain environment need in @ each stage of testing ipn.

i feeling frustrated because not how development should done. blindly trying things based on hunches, unscientific , inefficient.

can clarify (or point me part of docs clarifies) how debug invalid responses please?

ok. after significant time have come following conclusions:

the ipn simulator not part of sandbox. useful hitting quick lightweight tests check paypal's server can talk yours it. far true payment process simulator! solution debugging ipn validation process start payment simulation process basket submission stage few important values set sandbox environment.

1) firstly, log in https://developer.paypal.com/ using live business account username , password. click on applications > sandbox accounts https://developer.paypal.com/webapps/developer/applications/accounts , create 2 sandbox accounts:

create 1 merchant/business sandbox account, going our fake shop. example alansugar@yourdomain.example.com

then, create 1 personal sandbox account, going our fake customer. example ladygaga@yourdomain.example.com

we going use fake shop , fake customer play in sandbox...

2) set basket page on server (the 1 submits paypal) merchant/business sandbox account's address in business field , paypal's sandbox domain in action property of form element. so...

<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">     <input type="hidden" value="_xclick" name="cmd">     <input type="hidden" value="alansugar@yourdomain.example.com" name="business">     <input type="hidden" value="1" name="no_note">     <input type="hidden" value="gbp" name="currency_code">     <input type="hidden" value="gb" name="lc">     <input type="hidden" value="pp-buynowbf" name="bn">     <input type="hidden" value="bo14-9097200" name="invoice">     <input type="hidden" value="monkey" name="custom">     <input type="hidden" value="a nice pair of trousers" name="item_name">     <input type="hidden" value="1" name="some socks match">     <input type="hidden" value="25.0" name="amount">     <input type="hidden" value="2" name="no_shipping">     <input class="buybutton" type="image" border="0" alt="paypal – safer, easier way pay online." name="submit" src="https://www.paypalobjects.com/en_us/gb/i/btn/btn_buynowcc_lg.gif">     <img width="1" border="0" height="1" src="https://www.paypal.com/en_gb/i/scr/pixel.gif" alt=""> </form> 

3) submit basket , when see paypal payment page (your browsers address bar accessing www.sandbox.paypal.com domain) use fake customer account pay.

4) log in https://developer.paypal.com/ using live account. click on applications > sandbox accounts , click enter sandbox site link. now, whilst browser still logged main live account, can kind of secondarily log in deeper layer using sandbox accounts username , password (very confusing). of course confuse you, username , password boxes in top right pre-populated live account's details. wipe these , use sandbox merchant/business account's username , password. click on history > ipn history , can see requests posted server. should able debug nicely using information. if ipn not enabled on merchant/business sandbox account yet give instructions go settings page , enable it. that. payments before point not have triggered ipns.

i hope description helps who, me, found official paypal docs read book half pages missing!


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -