YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

ExpressCheckout API problems using asp.net Options
molankuma
#1 Posted : Tuesday, March 16, 2010 5:02:21 PM
Rank: Starting Member

Groups: Registered

Joined: 3/16/2010
Posts: 2
Location: Indiana
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.
Sponsor  
 
molankuma
#2 Posted : Thursday, March 18, 2010 2:16:40 PM
Rank: Starting Member

Groups: Registered

Joined: 3/16/2010
Posts: 2
Location: Indiana
Does anybody have any suggestions? This is getting urgent for us...
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.189 seconds.