in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Paypal Pro timeout

Last post 03-12-2008 1:48 PM by spoonbow. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-07-2008 3:23 PM

    Paypal Pro timeout

    UPDATED 

    All the below still holds true, but I just discovered that at least some of the orders went through and the payments have been processed at Paypal. Still timed out on all of them, but a few were posted to Paypal. I did have one order go all the way through tonight and Paypal handed back off to my local server, but I was redirected to the standard "Empty Cart" page instead of receiving a successful order notification. Weird. Just for fun I tried refunding the one transaction that did complete (From Admin, Orders, Actions) and the refund request processed and returned in under ten seconds. Starting to wonder if maybe the problem lies in the code, not slow response times from Paypal. Has anyone successfully processed orders using DC3 and PaypalPro?

     TIA
    Matt

    Hi all

    Well it took three pots of coffee and a dozen donuts, but I'm getting dangerously close to having the Pro provider working. Coming up against a timeout error now when clicking "Process Order" and am not sure if it's a problem on this end or just Paypal's dreadfully slow response times on the Sandbox site. Has anyone else come up against this? Is there an easy way to change the timeout for web requests to a longer interval? Exception detail follows signature...

    Thanks in advance
    Matt

    Error returned from checkout.aspx.cs, catch block at line 537 (after patching with ThreadAbortException patch) as shown here;


    catch(Exception ex) {

    Logger.Error(typeof(checkout).Name + ".btnProcessOrder_Click", ex);

    ---> throw;

    }


    Exception Details 

    System.Net.WebException was unhandled by user code
      Message="The operation has timed out"
      Source="System.Web.Services"
      StackTrace:
           at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
           at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
           at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[ parameters)
           at MettleSystems.dashCommerce.Store.PayPalSvc.PayPalAPIAASoapBinding.DoDirectPayment(DoDirectPaymentReq DoDirectPaymentReq)
           at MettleSystems.dashCommerce.Store.Services.PaymentService.PayPal.PayPalService.DoDirectPayment(Order order, Boolean authorizeOnly)
           at MettleSystems.dashCommerce.Store.Services.PaymentService.PayPalProPaymentProvider.Charge(Order order)
           at MettleSystems.dashCommerce.Store.Services.PaymentService.PaymentService.Charge(Order order)
           at MettleSystems.dashCommerce.Store.OrderController.Charge(Order order, String userName)
           at MettleSystems.dashCommerce.Web.checkout.btnProcessOrder_Click(Object sender, EventArgs e)
           at System.EventHandler.Invoke(Object sender, EventArgs e)
           at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
           at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
           at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
           at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
           at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
           at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  • 03-10-2008 12:16 PM In reply to

    Re: Paypal Pro timeout

    Matt,I processed 5 or 6 orders against my sandbox account yesterday with no problems. It was pretty slow, but eventually went through and forwarded me to the receipt page. I then tried this morning and noticed something odd, I got redirected to the empty cart page, but the order did go through. It is showing up in my customer account, and in the admin section under sales. It even sent the e-mails to both the merchant and the customer, and the funds show up as being posted in the sandbox seller account. BUT - the order time that is logged in the DB is 5 hours ahead of the actual time. The orders I processed yesterday (after DST time change) had the correct time. I double checked the time on my development machine, my web server, and my DB server - all correct.

    EDIT: Actually the time in the DB is correct, but it is displaying on the receipt and on admin/orderedit.aspx incorrect. Probably a DST time change issue, but it seems odd that it was fine yesterday after the actual time change.

    I also noticed that the refund was much faster.

    I'm half ways tempted to change the PayPal provider config over to the live PayPal account and test it, but I don't want to incur my customer fees for testing purposes. Do you know if I process a transaction, and then refund it right way, will the seller account be charged for that transaction?

     

  • 03-12-2008 1:48 PM In reply to

    Re: Paypal Pro timeout

    Well the latest news on the timeout issue is this - It only seems to exist when running in Debug mode from VS2005. If I run from my production server (as opposed to the devel server that VS uses) the transaction returns a Paypal error 10747 (invalid IP address) almost immediately. Checked the Paypal docs and this error is related to the IP address of the "buyer" that is passed to the Paypal during the transaction. If this address doesn't appear to be valid, Paypal aborts the transaction. Apparently it doesn't like what it's seeing from dashCommerce, at least not in my current config which is IIS7 running on Vista.

     

    Matt

Page 1 of 1 (3 items)