Using the PayPal API in an iPhone application

前端 未结 3 603
难免孤独
难免孤独 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:16

    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

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-11 10:28

    Additionally, I think you should URL-encode the name and value parameters that you're passing in.

    0 讨论(0)
提交回复
热议问题