Copied to clipboard

Flag this post as spam?

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


  • Jimmy Dan Mortensen 77 posts 197 karma points
    Jan 26, 2014 @ 15:28
    Jimmy Dan Mortensen
    0

    Dummy support for payment provider

    Is there someone who can guide me through getting payment provider for Tea Commerce and Netaxept to work?

    I am using the Tea Commerce starter kit with Umbraco Version 6.1.3. I am trying to setup the use of the norwegian payment provider NetAxept.

    I have gotten access to the NetAxept system, but I cannot find any settings to do in that system (when looking at the sagepay guide from Anders Burla). The starter kit works perfect if I accept the payment directly.

    But if I try to use the NetAxept payment provider it fails me in step 4: Confirmation with the following error:

    Error loading MacroEngine script (file: /cart/step-accept.cshtml)

    I've really got no idea of how to troubleshoot this error, and I cannot find any documentation (that I understands) on how to implement this payment provider.

    These are the settings I have inputted into the provider settings

    merchantId: 6 digit number I have gotten from Nets
    token: blank, but have also tried the 6 digit number from above

    language:
    en-GB (default setting)
    Accepturl:
    /butikk/kurv/bekreftelse/ (This is the url that works from invoice-payment provider)
    cancelurl:
    /butikk/kurv/payment-cancelled/ (this is the URL I found in the content area of TeaCommerce store)
    instantcapture:
    0 (Default setting)
    paymentMethodList:
    Visa,Mastercard
    testMode:
    1 (Default setting and still testing so am not changing it yet)

    I would be very glad if someone could take the time and get me sorted out :-)
    Best regards
    Jimmy Dan Mortensen

  • Anders Burla 2560 posts 8256 karma points
    Jan 27, 2014 @ 13:28
    Anders Burla
    0

    Hi Jimmy

    Try look in the Logs/ files and find the one that states "Netaxept" - that should give you a description of what might be wrong in your setup.

    Kind regards
    Anders

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Jan 27, 2014 @ 14:20
    Jimmy Dan Mortensen
    0

    I have found the following entrys in the UmbracoTracelog:

    2014-01-26 15:01:48,615 [7] WARN  umbraco.macro - [Thread 37] Error loading MacroEngine script (file: /cart/step-accept.cshtml, Type: ''. Exception: System.Exception: Generate html failed - error message: Test: Unable to authenticate merchant (credentials not passed)
       at TeaCommerce.PaymentProviders.Classic.Netaxept.GenerateHtmlForm(Order order, String teaCommerceContinueUrl, String teaCommerceCancelUrl, String teaCommerceCallBackUrl, String teaCommerceCommunicationUrl, IDictionary`2 settings)
       at TeaCommerce.Api.Web.PaymentProviders.PaymentMethodExtensions.GeneratePaymentForm(PaymentMethod paymentMethod, Order order, String submitInput)
       at TeaCommerce.Api.Web.TeaCommerceHelper.GeneratePaymentForm(Int64 storeId, String submitInput)
       at TeaCommerce.Umbraco.Web.TC.GeneratePaymentForm(Int64 storeId, String submitInput)
       at ASP._Page_macroScripts_cart_step_accept_cshtml.Execute() in d:\web\localuser\spekebua.no\public_html\macroScripts\cart\step-accept.cshtml:line 48
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
       at System.Web.WebPages.WebPage.ExecutePageHierarchy()
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
       at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
       at umbraco.macro.loadMacroScript(MacroModel macro)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
    2014-01-26 15:06:55,642 [7] WARN  umbraco.macro - [Thread 57] Error loading MacroEngine script (file: /cart/step-accept.cshtml, Type: ''. Exception: System.Exception: Generate html failed - error message: Authentication failed (Test) MerchantId: XXXXXX
       at TeaCommerce.PaymentProviders.Classic.Netaxept.GenerateHtmlForm(Order order, String teaCommerceContinueUrl, String teaCommerceCancelUrl, String teaCommerceCallBackUrl, String teaCommerceCommunicationUrl, IDictionary`2 settings)
       at TeaCommerce.Api.Web.PaymentProviders.PaymentMethodExtensions.GeneratePaymentForm(PaymentMethod paymentMethod, Order order, String submitInput)
       at TeaCommerce.Api.Web.TeaCommerceHelper.GeneratePaymentForm(Int64 storeId, String submitInput)
       at TeaCommerce.Umbraco.Web.TC.GeneratePaymentForm(Int64 storeId, String submitInput)
       at ASP._Page_macroScripts_cart_step_accept_cshtml.Execute() in d:\web\localuser\spekebua.no\public_html\macroScripts\cart\step-accept.cshtml:line 48
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
       at System.Web.WebPages.WebPage.ExecutePageHierarchy()
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
       at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
       at umbraco.macro.loadMacroScript(MacroModel macro)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

    Do they tell you what is wrong?

    Kind regards
    Jimmy

  • Anders Burla 2560 posts 8256 karma points
    Jan 27, 2014 @ 14:26
    Anders Burla
    100

    Unable to authenticate merchant (credentials not passed)

    So looks like your credentials isnt correct.

    Kind regards
    Anders

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Jan 27, 2014 @ 14:37
    Jimmy Dan Mortensen
    0

    I have entered the Merchantid and my password in Token. Is that not correct?

    Kind regards
    Jimmy

  • Anders Burla 2560 posts 8256 karma points
    Jan 27, 2014 @ 14:52
    Anders Burla
    0

    Yeah that should be correct. Try and check if something is test mode and the account you use is in production. Or maybe a whitespace is in the password or etc.

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Jan 27, 2014 @ 15:06
    Jimmy Dan Mortensen
    0

    The info I inputted was the production :-) So changing the test-setting to 0 solved that problem. I thought it meant that the system was in test-mode so that nothing would be saved or withdrawn.

    But now I get another problem. When i press continue for payment it goes straight into payment-cancelled page. As far as I understand it should go to the payment-page, but this page has no template attached (is that correct?) in the starter kit. And I can't really find a macro or template page that seems to be what I am searching for.

    Is there a document I can read where I can see the different steps I need to do in order to get netaxept to work? Like a dummy-guide or step-by-step guide :-P

    Kind regards
    Jimmy

  • Anders Burla 2560 posts 8256 karma points
    Jan 27, 2014 @ 15:21
    Anders Burla
    0

    If it goes directly to the cancel page, then another error has happend - but good you got a step ahead. Now check the log file again.

    There is no step-by-step guide for Netaxept - sorry!

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Jan 27, 2014 @ 15:29
    Jimmy Dan Mortensen
    0

    The only entry regarding Netaxept in the tracelog (from after the last error) is this:

    2014-01-27 14:54:18,536 [7] INFO  umbraco.BusinessLogic.Log - [Thread 59] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Netaxept(CART-11672) - Response code isn't valid - response code: 99

    I've tried 3 times, and there is 1 entry for each try.

    Kind regards
    Jimmy

  • Anders Burla 2560 posts 8256 karma points
    Jan 27, 2014 @ 15:49
    Anders Burla
    0

    The error code 99 is a generic one. Try find the Netaxept callback file in your website root. It is where it goes wrong. So would be good to see which in you have there.

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Jan 28, 2014 @ 22:24
    Jimmy Dan Mortensen
    0

    Hi Anders

    I cannot find the callback file that you are talking about. What should it be called exactly and where should I find it?

    Is it a file I was supposed to create?

    Kind regards
    Jimmy

  • Anders Burla 2560 posts 8256 karma points
    Jan 29, 2014 @ 09:02
    Anders Burla
    0

    It should be in the root of the website folder - named something like "Netaxept callback" - its a txt file. It will be created if the provider is running in test mode when the call back hit.

    Kind regards
    Anders

  • Anders Burla 2560 posts 8256 karma points
    Jan 29, 2014 @ 09:05
    Anders Burla
    0

    It should be in the root of the website folder - named something like "Netaxept callback" - its a txt file. It will be created if the provider is running in test mode when the call back hit.

    Kind regards
    Anders

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Feb 07, 2014 @ 18:36
    Jimmy Dan Mortensen
    0

    Hi Anders

    There is no such file created. But there must be something missing in my install :-(

    Here is what I have done.

    1) Logged onto Netaxept webservice - There is no special settings to be set here although there is a setting that says Callback Url. I have tried and input https://www.spekebua.no/netaxeptCallback.txt and filled in the FTP username and password.
    2) Created payment method in Umbraco
    3) filled out all the default settings on the payment provider tab in teaCommerce.

    This is all I have done. Is there something I am missing?

    What is happening is that when I press the payment-button after step 4 it goes directly to Payment cancelled.

    How do I get it to show a form where I can fill in the payment-info?

    Best regards
    Jimmy

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Feb 11, 2014 @ 09:20
    Jimmy Dan Mortensen
    0

    I am in desperate need of help now. Is there really no guide on how to implement NetAxept? Is it a matter of paying for support, because I already paid for the teacommerce licence.

    Regards
    Jimmy

  • Kim Pilgaard 10 posts 96 karma points
    Feb 11, 2014 @ 13:27
    Kim Pilgaard
    0

    I work at Tea Solutions with Anders and have some experience with the Tea Commerce payment providers.

    The "Netaxept callback" file is only created if the payment provider is running in test mode (test = 1), since you mentioned that you turned test mode off then a file should not be generated. If you wish to try and debug this yourself I would advice turning test mode on in both Tea Commerce and Netaxept, then you should get a file with some information for you.

    If you need live communication to sort this issue out, then you can call me at Tea Solutions on (+45) 82 307 306. Then I can try and assist you in either debugging this yourself or by looking into the issue for you. You should note that this will be at Tea Solutions hourly rate.

  • Jimmy Dan Mortensen 77 posts 197 karma points
    Feb 11, 2014 @ 13:36
    Jimmy Dan Mortensen
    0

    Hi Kim,

    I was just writing another answer when your reply popped in :-)

    The reason it didn't work for me in test-mode was the simple fact, that the owner had sent me the wrong password - it was missing a _ :-(

    The test-mode worked perfectly (although it doesn't check if the money gets credited - but says payment ok if it only gets captured and then makes an error).

    I then switched to "Live"-mode and it still didn't work :-( I called Nets in Norway to hear what they had to say, and it was as simple as not having the right agreement (no Visa or Mastercard) and that I in paymentmethodlist had put in those unavailable options.

    Nets told me that if I didn't input anything in the settings, then they would prompt me for what options the customer could choose.

    So it is working as it should - And I was just not smart enough to figure out why it was cancelling my payments immediately.

    Kind regards
    Jimmy

  • Rune Grønkjær 1371 posts 3102 karma points
    Feb 13, 2014 @ 10:37
    Rune Grønkjær
    0

    Good thing you found a solution Jimmy :)

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft