I'm trying to connect my website to the Paypal Sandbox in order to use the Express Checkout feature. I've used this link as reference but i keep getting the 10002 Error "Security header is not valid".
From the documentation this has to be a invalid credentials problem but if i made the request manually through soapUI it returns "Sucess", if i use the curl command it also works as expected.
Scenario: ASP.NET page with two Web References one to https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl and another to https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl, the given credentials are Username, Password and Signature as you can see in the following code snippet:
using CloudShop.com.paypal.sandbox.www; namespace CloudShop { public static PayPalAPIAASoapBinding BuildPayPalWebservice() { UserIdPasswordType credentials = new UserIdPasswordType() { Username = CloudShopConf.PayPalAPIUsername, Password = CloudShopConf.PayPalAPIPassword, Signature = CloudShopConf.PayPalAPISignature }; PayPalAPIAASoapBinding paypal = new PayPalAPIAASoapBinding(); paypal.RequesterCredentials = new CustomSecurityHeaderType() { Credentials = credentials }; return paypal; } Right now i would like to know how to proceed with the debug. What could be wrong?