php - Paypal IPN always returning INVALID response -


i trying use paypal ipn functionality core php code had earlier codeigniter, getting invalid response.

file_get_contents('php://input')  

giving me:

mc_gross=0.10&protection_eligibility=ineligible&payer_id=9bdrp2hmjuemq&tax=0.00&payment_date=03%3a42%3a59+jul+25%2c+2017+pdt&payment_status=completed&charset=utf-8&first_name=name&mc_fee=0.10¬ify_version=3.8&custom=admin&payer_status=verified&business=email&quantity=1&payer_email=payer&verify_sign=afcwxv21c7fd0v3byyyrcpssrl31asrrua67d5tur8-3cwnzhuuvbyid&txn_id=36t014537e793324n&payment_type=instant&payer_business_name=test+store&last_name=singh&receiver_email=receiver&payment_fee=0.10&receiver_id=g92pv2rjm9jbg&txn_type=web_accept&item_name=manual+emw+payment&mc_currency=usd&item_number=manual+emw+payment&residence_country=gb&test_ipn=1&handling_amount=0.00&transaction_subject=&payment_gross=0.10&shipping=0.00&auth=a0crlu.xxwvgslw.msqokjimtbwq7d2hbqnossczm759div4ndb9finkeeyz2c7i3rtn7ftekygz5slgogw26ca 

and request sending paypal is:

cmd=_notify-validate&mc_gross=0.10&protection_eligibility=ineligible&payer_id=9bdrp2hmjuemq&tax=0.00&payment_date=03%3a42%3a59+jul+25%2c+2017+pdt&payment_status=completed&charset=utf-8&first_name=name&mc_fee=0.10¬ify_version=3.8&custom=admin&payer_status=verified&business=email&quantity=1&payer_email=payer&verify_sign=afcwxv21c7fd0v3byyyrcpssrl31asrrua67d5tur8-3cwnzhuuvbyid&txn_id=36t014537e793324n&payment_type=instant&payer_business_name=test+store&last_name=singh&receiver_email=receiver&payment_fee=0.10&receiver_id=g92pv2rjm9jbg&txn_type=web_accept&item_name=manual+emw+payment&mc_currency=usd&item_number=manual+emw+payment&residence_country=gb&test_ipn=1&handling_amount=0.00&transaction_subject=&payment_gross=0.10&shipping=0.00&auth=a0crlu.xxwvgslw.msqokjimtbwq7d2hbqnossczm759div4ndb9finkeeyz2c7i3rtn7ftekygz5slgogw26ca200 

i guess both same , wondering why getting response (invalid)

ipn url sandbox: https://ipnpb.sandbox.paypal.com/cgi-bin/webscr

i had previous code can't access working fine old.

that had urls:

ipn url sandbox: https://www.sandbox.paypal.com/cgi-bin/webscr

at last there 3 things of concern:

a) using right urls.

b) there wrong payload that's being sent paypal.

c) in payload &notify_version changed unicode character, browser converting it, or there's wrong.

any appreciated. thanks


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -