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.

  • Phil Crowe 192 posts 256 karma points
    May 17, 2012 @ 14:28
    Phil Crowe
    0

    sagepay gateway error on /shop/checkout/orderconfirmation.aspx page

    Hi I am trying to get a simulator for working for sagepay, ive setup an account and filled in the details in the sagepay config file. however once i get past all the steps in the cart i get an error parsing xslt error. these errors then show in the umbraco log:

    41433  0    -1   2012-05-17 13:30:21.817  Error    Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
    41434 0 -1 2012-05-17 13:30:21.817 Error The remote name could not be resolved: 'stage.collection.local' Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)    at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)     at System.Net.WebClient.DownloadData(Uri address)     at System.Net.WebClient.DownloadData(String address)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber)     at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)     at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
    41435 0 -1 2012-05-17 13:30:21.863 Error The remote name could not be resolved: 'stage.collection.local' Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)    at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)     at System.Net.WebClient.DownloadData(Uri address)     at System.Net.WebClient.DownloadData(String address)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber)     at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)     at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
    41436 0 -1 2012-05-17 13:30:21.873 Error Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details. UCommerce.Pipelines.PipelineExecutionResult Execute(T)    at UCommerce.Pipelines.Pipeline`1.Execute(T subject)     at UCommerce.Transactions.CheckoutService.Checkout(Basket basket)     at UCommerce.Xslt.TransactionLibrary.Checkout()     at UCommerce.Xslt.Library.<Checkout>b__88()     at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)

    here is my sagepay config file:

    <?xml version="1.0"?>
    <sagePayPaymentMethodService
      vendor="collectioncos"
      txType="AUTHENTICATE"
      debug="false"
      testMode="SIMULATOR"
      successUrl="http://stage.collection.sass.local/successful-payment.aspx"
        abortUrl="http://stage.collection.sass.local/order-failed.aspx"
      failureUrl="http://stage.collection.sass.local/order-failed.aspx"
      notificationURL="(auto)" />

  • Basil 33 posts 53 karma points
    May 17, 2012 @ 14:55
    Basil
    0

    I think the successUrl, abortUrl and failureUrl should be acceessible over internet.

  • Phil Crowe 192 posts 256 karma points
    May 17, 2012 @ 15:00
    Phil Crowe
    0

    Hi Basil, thanks for getting back to me. As a test could i set these to just google?

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 22, 2012 @ 09:59
    Søren Spelling Lund
    0

    Phil,

    Please check whether you can resolve the URLs while logged on the server locally.

    If not modify the hosts file to point the domain to 127.0.0.1.

    This typically happens in load balanced scenarios where the server itself cannot resolve DNS for the website.

  • Phil Crowe 192 posts 256 karma points
    May 23, 2012 @ 11:29
    Phil Crowe
    0

    Hi Soren, thanks! this fixed the 'unable to resolve' error but i now get these errors in the log on the final checkout step:

    415200-12012-05-23 10:26:19.653ErrorAt /eyes/mascara/volume-sensation-xxl-mascara.aspx?orderNumber=41bb8f62-2135-4795-b983-15649ee7a684 (Referred by: ): System.NullReferenceException: Object reference not set to an instance of an object.     at PS.Helpers.UserIsUsingAnIpad() in c:\iis_webs\collection-svn\App_Code\c2kxsltEntensions.cs:line 101     at usercontrols_ProductListings.Page_Load(Object sender, EventArgs e) in c:\iis_webs\collection-svn\usercontrols\ProductListings.ascx.cs:line 82     at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)     at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)     at System.Web.UI.Control.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    415210-12012-05-23 10:26:19.653ErrorException occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
    415220-12012-05-23 10:26:19.657ErrorThe remote server returned an error: (500) Internal Server Error. Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)    at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)     at System.Net.WebClient.DownloadData(Uri address)     at System.Net.WebClient.DownloadData(String address)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber)     at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)     at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
    415230-12012-05-23 10:26:19.657ErrorException occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details. UCommerce.Pipelines.PipelineExecutionResult Execute(T)    at UCommerce.Pipelines.Pipeline`1.Execute(T subject)     at UCommerce.Transactions.CheckoutService.Checkout(Basket basket)     at UCommerce.Xslt.TransactionLibrary.Checkout()     at UCommerce.Xslt.Library.<Checkout>b__88()     at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)

     

    415240-12012-05-23 10:26:19.660ErrorThe remote server returned an error: (500) Internal Server Error. Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)    at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)     at System.Net.WebClient.DownloadData(Uri address)     at System.Net.WebClient.DownloadData(String address)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)     at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber)     at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)     at UCommerce.Pipelines.Pipeline`1.Execute(T subject) 

     

    I dont understand why this url is getting called /eyes/mascara/volume-sensation-xxl-mascara.aspx?orderNumber=41bb8f62-2135-4795-b983-15649ee7a684 as it is not the product ive added to my basket... would this be the cause to the pipeline errors i see after it?

    Thanks

    Phil

     

  • Phil Crowe 192 posts 256 karma points
    May 23, 2012 @ 12:07
    Phil Crowe
    0

    Ok figured this out. i needed to set up my email template properly in the ucommerce so now i get this The pipeline executed succesfully.

    :) but i thought it would go to sagepay?

    I found the documentation saying i need to call RequestPayments this just shows 'The payment has been updated.' but doesnt actually take me to sagepay. i have selected the 'bakset' pipeline in my sagepay options in the cms.

     

    my BubmitBasket xslt

     

    <xsl:if test="string-length($isPostback) > 0">
    <!--<xsl:value-of select="CommerceLibrary:ExecuteBasketPipeline()"></xsl:value-of>-->
    <!--<xsl:variable name="addressResult" select="CommerceLibrary:SetBillingAddress('Billing')"></xsl:variable>-->
    <xsl:value-of select="CommerceLibrary:RequestPayments()"></xsl:value-of>
    <!--the checkout call below must be called on the return url see http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/20781-Sagepay-integration -->
    <!--<xsl:variable name="result" select="CommerceLibrary:Checkout()"></xsl:variable>-->
    </xsl:if>

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 24, 2012 @ 09:07
    Søren Spelling Lund
    0

    RequestPayments will take you to the gateway. Did you configure a service for the payment method in the backend?

  • Phil Crowe 192 posts 256 karma points
    May 24, 2012 @ 12:58
    Phil Crowe
    0

    I dont have anything listed in the service drop down, just 'default'. Had a look at the documentation should it be there by default?

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 25, 2012 @ 09:08
    Søren Spelling Lund
    0

    You should have sixteen ready-made integrations for payment gateways.

    Which version are you on?

  • Phil Crowe 192 posts 256 karma points
    May 25, 2012 @ 10:45
    Phil Crowe
    0

    im on v2.0

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 01, 2012 @ 13:53
    Søren Spelling Lund
    0

    Make sure that the <paymentMethodServices> element contains references to all of the services available. You can see a list of what it should look like in /umbraco/ucommerce/install/uCommerce.config (the default config used for installation).

Please Sign in or register to post replies

Write your reply to:

Draft