Hello I want to use Paypal in my iphone application, I have find the soapRequest to integrating the paypal API. My code is
NSString *soapMessage = [NSString s
You might want to look at this question too (link) which indicates you will have your application rejected by Apple. You need to look at the In App Purchase mechanisms to collect payments in an iPhone App
You appear to be mixing up two different ways of calling the PayPal API. You have a SOAP XML string, which you don't actually use and also then call the NVP (name value pair) API.
You need to decide which you are actually going to use.
The URLs you need to use for the NVP API are:
API Servers for API Signature Security
If you use an API signature, post the request to one ofthese servers:
Sandbox: https://api-3t.sandbox.paypal.com/nvp
Live: https://api-3t.paypal.com/nvp API Servers for API Certificate Security
If you use an API certificate, post the request to oneof these servers:
Sandbox: https://api.sandbox.paypal.com/nvp
Live: https://api.paypal.com/nvp
As described here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_NVPAPIOverview
Additionally, I think you should URL-encode the name and value parameters that you're passing in.