IPN INVALID

Kipetcoff
Contributor
Contributor

Hi, all.

I'm implementing IPN functionallity and for test purpose publish test application with this example code.

https://github.com/paypal/ipn-code-samples/blob/master/C%23/paypal_ipn_mvc_core.cs

And responses always INVALID.

Here is original request from IPN simulator

payment_type=instant&payment_date=Fri%20Sep%2021%202018%2010%3A03%3A38%20GMT%2B0300%20%28%u041C%u043E%u0441%u043A%u0432%u0430%2C%20%u0441%u0442%u0430%u043D%u0434%u0430%u0440%u0442%u043D%u043E%u0435%20%u0432%u0440%u0435%u043C%u044F%29&payment_status=Completed&payer_status=verified&first_name=John&last_name=Smith&payer_email=buyerDOGGYpaypalsandbox.com&payer_id=TESTBUYERID01&address_name=John%20Smith&address_country=United%20States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San%20Jose&address_street=123%20any%20street&business=sellerDOGGYpaypalsandbox.com&receiver_email=sellerDOGGYpaypalsandbox.com&receiver_id=sellerDOGGYpaypalsandbox.com&residence_country=US&item_name1=something&item_number1=AK-1234&quantity=1&shipping=3.04&tax=2.02&mc_currency=USD&mc_fee=0.44&mc_gross=12.34&mc_gross_1=12.34&mc_handling=2.06&mc_handling1=1.67&mc_shipping=3.02&mc_shipping1=1.02&txn_type=cart&txn_id=899327589&notify_version=2.4&custom=xyz123&invoice=abc1234&test_ipn=1&verify_sign=Az67jetBw42PJZWqdxG9HZqIFcpZAXxPpItDVsm3dm6d6AJ3vmlruVxv

 

Here is my response

cmd=_notify-validate&payment_type=instant&payment_date=Fri%20Sep%2021%202018%2010%3A03%3A38%20GMT%2B0300%20%28%u041C%u043E%u0441%u043A%u0432%u0430%2C%20%u0441%u0442%u0430%u043D%u0434%u0430%u0440%u0442%u043D%u043E%u0435%20%u0432%u0440%u0435%u043C%u044F%29&payment_status=Completed&payer_status=verified&first_name=John&last_name=Smith&payer_email=buyerDOGGYpaypalsandbox.com&payer_id=TESTBUYERID01&address_name=John%20Smith&address_country=United%20States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San%20Jose&address_street=123%20any%20street&business=sellerDOGGYpaypalsandbox.com&receiver_email=sellerDOGGYpaypalsandbox.com&receiver_id=sellerDOGGYpaypalsandbox.com&residence_country=US&item_name1=something&item_number1=AK-1234&quantity=1&shipping=3.04&tax=2.02&mc_currency=USD&mc_fee=0.44&mc_gross=12.34&mc_gross_1=12.34&mc_handling=2.06&mc_handling1=1.67&mc_shipping=3.02&mc_shipping1=1.02&txn_type=cart&txn_id=899327589&notify_version=2.4&custom=xyz123&invoice=abc1234&test_ipn=1&verify_sign=Az67jetBw42PJZWqdxG9HZqIFcpZAXxPpItDVsm3dm6d6AJ3vmlruVxv

 

Where is the problem?

 

Login to Me Too
1 REPLY 1

Kipetcoff
Contributor
Contributor

I found the reason. It was because of date format.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.