PayPal REST API .net SDK - 400 Bad Requests

后端 未结 8 1638
庸人自扰
庸人自扰 2021-02-13 12:57

I\'m working in the sandbox and using the PayPal REST .net SDK method Payment.Create with a CreditCard object. When all parameters are valid and using the test CC number from h

8条回答
  •  不要未来只要你来
    2021-02-13 13:37

    @Jonathan, The REST API has log4net integrated and will output the full error response to a log file if you set it up. You must add this config section to your web.config:

    and also set the options:

    
    
      
      
      
        
      
    
    
      
      
    
    

    Open your global.asax and add this into the Application_Start:

    log4net.Config.XmlConfigurator.Configure();
    

    Now, as long as there are write permissions set on your log folder, then the PayPal REST SDK will spit out error messages to the log file.

提交回复
热议问题