Using the PayPal API in an iPhone application

前端 未结 3 645
难免孤独
难免孤独 2021-02-11 09:42

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         


        
3条回答
  •  天命终不由人
    2021-02-11 10:20

    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

提交回复
热议问题