php - Paypal IPN simulator inconsistently works -


the paypal ipn simulator seems buggy.

the handshake between listener , simulator comes verified, invalid of other times.

i using ipn script handshake:

$listener = new ipnlistener(); $listener->use_sandbox = true;  $verified = false;  try {     $listener->requirepostmethod();     $verified = $listener->processipn(); } catch(exception $e) {     error_log($e->getmessage());     exit(0); }  if ($verified) {     // stuff database } else {     error_log($listener->getreport()); // when handshake invalid, goes here  } 

this kind of report get:

[10-jun-2016 18:30:09 america/denver] -------------------------------------------------------------------------------- [06/10/2016 6:30 pm] - https://www.sandbox.paypal.com/cgi-bin/webscr (curl) -------------------------------------------------------------------------------- http/1.1 200 ok  date: sat, 11 jun 2016 00:30:08 gmt  server: apache  x-frame-options: sameorigin  set-cookie: c9mwduvptt9gimypc3jwol1vslo=pbw-3qmnqq_fobmy8qdftfbb99zevawbnk4mxnzwawvvzq5qcp4k87k_xi-fs_cyc0bbv_gmfx28v2tztfadgmng2nmcxhnc9s5uc9cryii4u3y-maydwaijddvbpb_upxnyrxef2p7qwqkcwwejlkbqu9zffcgm9sxusltr4ohbj9nc3ccckchjuzljq5bneux_cnqzdp887upjbe6jonnbmkhjxjneqywldhzdkssgqcoucx4awl7f3vca7xtnv7bor90bidpdrnuljmidhazeu9gfsjodjrrl9fs3w6h-umrvbkdwcfdv22pjxftda-j5tgaersvyrhzju1wg4b8mfi3rh7uotoqsrsptl9wsh2j7ssuobfivi2yednxwejsm3fyzztqgtlfmveczclh-ss0lownolx9u60omwrgka14zelcn773_yxq; domain=.paypal.com; path=/; secure; httponly  set-cookie: cookie_check=yes; expires=tue, 09-jun-2026 00:30:09 gmt; domain=.paypal.com; path=/; secure; httponly  set-cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; secure; httponly  set-cookie: navlns=0.0; expires=mon, 11-jun-2018 00:30:09 gmt; domain=.paypal.com; path=/; secure; httponly  set-cookie: apache=10.72.108.11.1465605008753741; path=/; expires=mon, 04-jun-46 00:30:08 gmt  vary: accept-encoding,user-agent  x-cnection: close  http_x_pp_az_locator: sandbox.slc  paypal-debug-id: 15636c1fb3bcc  set-cookie: x-pp-silover=name%3dsandbox3.web.1%26silo_version%3d1880%26app%3dappdispatcher%26time%3d2421906263%26http_x_pp_az_locator%3dsandbox.slc; expires=sat, 11 jun 2016 01:00:09 gmt; domain=.paypal.com; path=/; secure; httponly  set-cookie: x-pp-silover=; expires=thu, 01 jan 1970 00:00:01 gmt  strict-transport-security: max-age=14400  transfer-encoding: chunked  content-type: text/html; charset=utf-8    invalid -------------------------------------------------------------------------------- payment_type             instant payment_date             fri jun 10 2012 20:01:10 gmt-0400 payment_status           completed address_status           confirmed payer_status             verified first_name               john last_name                smith payer_email              buyer@paypalsandbox.com payer_id                 testbuyerid01 address_name             john smith address_country          united states address_country_code     address_zip              95131 address_state            ca address_city             san jose address_street           123 street business                 xxxxxxxxxxxxxx receiver_email           seller@paypalsandbox.com receiver_id              seller@paypalsandbox.com residence_country        item_name                item_number              ak-1234 quantity                 1 shipping                 3.04 tax                      2.02 mc_currency              usd mc_fee                   0.44 mc_gross                 12.34 mc_gross_1               9.34 

is there sort of limitation on number of requests can made using simulator? can't figure out why works occasionally.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -