Hello,
I am currently having trouble with the ExpressCheckout integration using the Paypal API (https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl). Our platform is using asp.net 3.5 with c#.
When I am calling the SetExpressCheckout(SetExpressCheckoutReq req) method call, I am receiving the following error:
Code:
System.Web.Services.Protocols.SoapHeaderException: Timeout processing request
Line 1578: [return: System.Xml.Serialization.XmlElementAttribute("SetExpressCheckoutResponse", Namespace="urn:ebay:api:PayPalAPI")]
Line 1579: public SetExpressCheckoutResponseType SetExpressCheckout([System.Xml.Serialization.XmlElementAttribute(Namespace="urn:ebay:api:PayPalAPI")] SetExpressCheckoutReq SetExpressCheckoutReq) {
Line 1580: object[] results = this.Invoke("SetExpressCheckout", new object[] {
Line 1581: SetExpressCheckoutReq});
Line 1582: return ((SetExpressCheckoutResponseType)(results[0]));
Below is the code that I currently have in place:
Code:
PayPalAPIAASoapBinding binding = new PayPalAPIAASoapBinding();
BasicAmountType orderTotal = new BasicAmountType();
orderTotal.currencyID = CurrencyCodeType.USD;
orderTotal.Value = "100.00";
SetExpressCheckoutRequestDetailsType reqDetailsType = new SetExpressCheckoutRequestDetailsType();
reqDetailsType.OrderTotal = orderTotal;
reqDetailsType.NoShipping = "1";
reqDetailsType.BuyerEmail = "email";
reqDetailsType.CancelURL = "cancel URL";
reqDetailsType.ReturnURL = "return URL";
reqDetailsType.PaymentAction = PaymentActionCodeType.Sale;
reqDetailsType.PaymentActionSpecified = true;
SetExpressCheckoutRequestType reqCheckoutType = new SetExpressCheckoutRequestType();
reqCheckoutType.SetExpressCheckoutRequestDetails = reqDetailsType;
SetExpressCheckoutReq reqType = new SetExpressCheckoutReq();
reqType.SetExpressCheckoutRequest = reqCheckoutType;
SetExpressCheckoutResponseType resType = binding.SetExpressCheckout(reqType);
Can someone help direct me in the correct location? I have tried searching online, and haven't found anything to help out. I am thinking that I am taking the wrong direction completely, but I am not sure, so I came here for assistance.
Thank you for your help.