Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Rob Smith 34 posts 165 karma points
    Nov 29, 2013 @ 14:24
    Rob Smith
    0

    Sagepay Error 5006

    Hi all,

    I am using uCommerce 3.6.5.13233 and Sagepay and am getting the error: (screen shot below)

    HTTP Status Code:         500
    HTTP Status Message:     The request was unsuccessful due to an unexpected condition encountered by the server.
    Error Code :     5006
    Error Description :  Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.
    

    I have set up the payment type in UCommerce and set the

    Umbraco/Ucommerce/Configuration.Payments/Sagepay.config to

    <?xml version="1.0"?>
    <sagePayPaymentMethodService
        vendor="XXXXXXXX"
        txType="PAYMENT"
        debug="true"
        testMode="LIVE"
        successUrl="http://silexstaging.hotboxstudios.co.uk/shop/checkout/success.aspx"
        abortUrl="http://silexstaging.hotboxstudios.co.uk/shop/checkout/abort.aspx"
        failureUrl="http://silexstaging.hotboxstudios.co.uk/shop/checkout/failure.aspx"
        notificationURL="(auto)"
    />
    

    I changed AUTHENTICATE to PAYMENT in the above as they do not have AUTHENTICATE set up on their account so that could be the issue but I don't think so?

    The URL is accessibly via the server - I had to add to the hosts file for that but it is working

    I have added the IP of live.sagepay.com to our firewall to allow traffic through but still get the error:

    If I look in the orders section of UCommerce I can see the order and it says:

    Payment Method Sagepay
    Amount 16.88
    Payment status Acquired
    Transaction ID SecurityKey=3DSXQDNEH2,VPSTxId={1AB6158E-8594-0792-67F4-4E908701C20E},TxAuthNo=871671214
    Reference ID Reference-36
    

    Which sounds to me as though it has gone through just not redirected back to the success page?

    Any ideas?

  • Lars Horne-Mortensen 40 posts 184 karma points
    Dec 02, 2013 @ 10:23
    Lars Horne-Mortensen
    0

    Hi Rob,

    Can you take a look at the uCommerce log? Maybe there's an error in a pipeline somewhere. It could have something to do with the email service.

    / Lars

  • Rob Smith 34 posts 165 karma points
    Dec 02, 2013 @ 10:40
    Rob Smith
    0

    I can't see anything at all in the umbracoLog table - is there a separate log for uCommerce somewhere?

  • Lars Horne-Mortensen 40 posts 184 karma points
    Dec 02, 2013 @ 11:36
    Lars Horne-Mortensen
    100

    In Umbraco from version 6 and up, the log is placed in /App_Data/Logs, you can try to take a look there.

    / Lars

  • Rob Smith 34 posts 165 karma points
    Dec 02, 2013 @ 12:44
    Rob Smith
    0

    Aha!! Looks like I need to add another IP to the SagePay whitelist.

    UCommerce.Pipelines.PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
    

    I'll update once I've found out whether this has fixed it :)

  • Rob Smith 34 posts 165 karma points
    Dec 03, 2013 @ 16:23
    Rob Smith
    0

    In case anybody else has this issue it was the email generation after the sale completed that was the issue (the site is behind a firewall and load balancer) so it could not access the external IP from itself.

    I had to add the domain name to the hosts file which pointed to the internal IP it know- simple fix in the end :)

    Hat tip to Lars for pointing me in the right direction

Please Sign in or register to post replies

Write your reply to:

Draft