Can we get Preapproval key by sending request to PayPal server from iPhone? (For testing) -


i trying fetch preapproval key paypal server right iphone app instead of setting separate server that. (for testing purpose). can achieved?

i have used following code that:

nsstring *url = @"requestenvelope.errorlanguage=en_us&cancelurl=http://www.bytelyte.com/paypal_x_nvp_tester.php?cmd=test&currencycode=usd&endingdate=27.05.11 &maxamountperpayment=5&maxnumberofpayments=2&maxtotalamountofallpayments=5&pintype=not_required&returnurl=http://www.bytelyte.com/paypal_x_nvp_tester.php?cmd=test&startingdate=27.01.11&senderemail=krish_1297240918_per@gmail.com//www.bytelyte.com/paypal_x_nvp_tester.php?cmd=test&startingdate=27.01.11&senderemail=krish_1297240918_per@gmail.com";   nsdata *postdata = [url datausingencoding:nsasciistringencodinallowlossyconversion:yes]; [request setcachepolicy:nsurlrequestuseprotocolcachepolicy]; [request settimeoutinterval:1.0]; [request sethttpmethod:@"post"];  [request setvalue:@"xxyyzzzz" forhttpheaderfield:@"x-paypal-security-userid"]; [request setvalue:@"xxyyzzzz" forhttpheaderfield:@"x-paypal-security-password"]; [request setvalue:@"xxyyzzzz" forhttpheaderfield:@"x-paypal-security-signature"]; [request setvalue:@"nv" forhttpheaderfield:@"x-paypal-request-data-format"]; [request setvalue:@"nv" forhttpheaderfield:@"x-paypal-response-data-format"];  [request setvalue:@"127.0.0.1" forhttpheaderfield:@"x-paypal-device-ipaddress"]; [request setvalue:@"text/xml" forhttpheaderfield:@"content-type"]; [request setvalue:@"utf-8" forhttpheaderfield:@"charset"]; 

the response have got following:

responseenvelope.timestamp=2011-02-09t05%3a02%3a38.859-08%3a00&responseenvelope.ack=failure&responseenvelope.correlationid=981f044262212&responseenvelope.build=1655692&error(0).errorid=560029&error(0).domain=platform&error(0).severity=error&error(0).category=application&error(0).message=the+required+x-paypal-application-id+header+is+missing+from+the+http+request&error(0).parameter(0)=x-paypal-application-id

am missing or entirely not possible?

@krishnan, seems missing http header called x-paypal-application-id.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -