paypal - IPN Notification Verfication INVALID -


i keep getting invalid response paypal when sending data verify it's come them. i've read lots of other posts on nothing helping far. can verify:

  1. the order of params same.
  2. the data same exception of me prepending cmd=_notify-validate& request.

this quick hacky code post data up:

using (webclient client = new webclient()) {     var nvc = new namevaluecollection { {"cmd", "_notify-validate"} };     foreach (var f in formcollectiondata.allkeys)         nvc.add(f, formcollectiondata[f]);      try     {         servicepointmanager.securityprotocol = securityprotocoltype.tls | securityprotocoltype.tls11 | securityprotocoltype.tls12;         client.headers[httprequestheader.contenttype] = "application/x-www-form-urlencoded";         var response = client.uploadvalues(_urls[paypalresponse.test_ipn], "post", nvc);         var result = system.text.encoding.utf8.getstring(response); //returns "invalid"     }     catch (exception e)     {         ;     } } 

formcollectiondata data fed through action (using mvc). i've verified correct looking @ request.form.tostring() data.

i've tried posting using couple of other methods same invalid result.

i've read changing language encoding in paypal preferences utf-8 i'm using ipn simulator not sure how apply.

i appear going round in circles , don't know do.

edit i've tried sandbox paypal account going ipn history , re-sending 1 , has worked correctly. status of verified back.

this means it's ipn simulator isn't working assume it's encoding. possible see / change encoding of simulator utf-8?

i've encountered same problem. seem error simulator.

try clearing date fields in simulator blank. seems of special characters within form causing issues.

this bug in ipn simulator , real ipn messages not affected in same way.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -