Copied to clipboard

Flag this post as spam?

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


  • Ole Martin Bakke 112 posts 624 karma points
    May 16, 2013 @ 11:25
    Ole Martin Bakke
    0

    Transaction callback with PayEx

    Hi!

    We're currently implementing a new teaCommerce-solution with PayEx and as a part of the acceptanse test PayEx are recomending to use the Transaction Callback-feature availiable in the PayEx Merchants Admin.

    This will be used in those cases where PayEx failes to return the customer to the Redirect/Complete URL provided by TeaCommerce, or the payment status in PayEx is updated after the redirect has happened. That could be if the response from the bank is delayed.

    There is an option in PayEx Merchant Adminto activate Transaction Callback and provide an URL.
    Is there a feature in TeaCommerce who provides this URL? It seems to be a bit like the "Silent POST Url" used by Authorize.net

    We are using Umbraco 4.7.1 and TeaCommerce 1.4.2.4

    PayEx-documentation: http://www.payexpim.com/quick-guide/9-transaction-callback/

    -Ole Martin

  • Anders Burla 2560 posts 8256 karma points
    May 17, 2013 @ 14:11
    Anders Burla
    100

    Hi Ole

    Tea Commerce is finalizing an order from Payex on the continue url. So no real callback is supported. Does it give you problems with the current implementation or are you just trying to find more info about the Transaction callback and if its used in Tea Commerce?

    I think you could try and do like the Authorize.Net stuff - but I have no idea of what will happen :) But give it a try and let me know

    Kind regards
    Anders

  • Ole Martin Bakke 112 posts 624 karma points
    May 21, 2013 @ 09:50
    Ole Martin Bakke
    0

    Hi!

    Thanks for your reply. Mainly I was just looking for information about whats possible in TeaCommerce, but I had a longer chat with the technical department at PayEx and they strongly recomended implementing this kind of callback as an addition to the normal callback/complete which is standard in TeaCommerce.

    I may take a look into this if I can find the time.

    -Ole Martin

  • Anders Burla 2560 posts 8256 karma points
    May 21, 2013 @ 11:28
    Anders Burla
    0

    Yeah callback are the best way - but dont think that was an option when we did the payment provider for them. But would be more than happy if you looked more into it.

    Kind regards
    Anders

  • Jonas Eriksson 930 posts 1825 karma points
    Apr 01, 2015 @ 10:27
    Jonas Eriksson
    0

    Hi,

    is this still the case with the PayEx provider? We had a case where an order was not marked as completed, however the transaction was made. According to PayEx support, it happens that the user closes the process immediately after transaction at Payex part, and the return url is never called. They recommend the Transaction callback method to handle those cases.

    Thanks

    Jonas

  • Anders Burla 2560 posts 8256 karma points
    Apr 01, 2015 @ 16:24
    Anders Burla
    0

    PayEx works with the continue url. So yes that could be the case.

    So PayEx doesn't not make a callback or did their API change?

    Kind regards
    Anders

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Apr 09, 2015 @ 14:54
    Dennis Adolfi
    0

    We´ve had the exact same issue on an website we´ve made for a client a while now and we cant figure out whats the problem.

    We´ve using Umbraco 6.1.6.

    A lot of orders go trough without any problem, but a few order never gets completed.

    According to payex, everything is OK and the order is processed. But the customer does not get redirected to the confirmation-page, but to the "Faild payment"-page. But money has been withdrawn from the account.

    In TeaCommerce, the order gets initialized, but never captured.

    This is only with Payex.

    Dont know if this could also be something with the callback URL.

    One customer contacted us about this, and when i checked the logs i found an entry for that exact moment. It said:

    2015-04-09 14:01:07,303 [7] INFO umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: PayEx(SHOP-88344) - Process callback - Exception: System.NullReferenceException: Object reference not set to an instance of an object. at TeaCommerce.PaymentProviders.Classic.PayEx.ProcessCallback(Order order, HttpRequest request, IDictionary`2 settings)

    And then, 6 seconds later:

    2015-04-09 14:01:13,725 [7] WARN umbraco.macro - [Thread 23] Error loading MacroEngine script (file: cart/google-ecommerce-tracking.cshtml, Type: ''. Exception: System.NullReferenceException: Object reference not set to an instance of an object. at ASP.PagemacroScriptscartgoogleecommercetracking_cshtml.Execute() in c:\web\madamechic.se\madamechic.projektsida.se\macroScripts\cart\google-ecommerce-tracking.cshtml:line 24 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() 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)

    But this does not say anything to me.

    We would be extremly helpful for any ideas about this. The client is getting really pissed about this.

  • Anders Burla 2560 posts 8256 karma points
    Apr 10, 2015 @ 09:52
    Anders Burla
    0

    Hi Dennis

    Looks like an object is null in the callback of the payment provider for this specific case. But which object is null is a good question.

    Does the order with cart Number "Shop-88344" have an order property named "orderRef" and if yes - what is the value?

    Kind regards
    Anders

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Apr 13, 2015 @ 14:24
    Dennis Adolfi
    0

    Hi Anders.

    I am in contact with your colleague Kim and hopefully we will solve this.

    I´ll post the solution to this mistery if/when we solve it on this forum thread.

    Thank you so far!

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    May 06, 2015 @ 11:09
    Dennis Adolfi
    0

    Hi Anders.

    Found the solution to the Payex problem.

    Turns out, the checkout page where using the "TC.GeneratePaymentForm"-button on two places (Because the client wanted the "Proceed to payment"-button at the top AND bottom of the page for user convenience). The result is two buttons with two different "OrderRef". Since both "button" tries to generate and save a OrderRef to the database, the second orderRef will override the first OrderRef for the current order. This results in, if the costumer clicks on the first button, the "old" orderRef will be sent to Payex, and when the customer comes back from Payex after payment, payex will reffer to a old OrderRef and Tea Commerce can not find the correct order to finalize.

    Thats why some orders succeeded and some did´nt, depending on with botton they clicked before being redirected to payex.

    Simple solution, i removed one of the buttons, and with jquery i cloned the single "TC.GeneratePaymentForm"-button to the top of the checkout, wich resulted in only one call to the server and payex, and both bottoms reffering to the same orderRef.

    So, not a Tea Commerce problem, but a developer mistake. And a heads up to anyone who wants two checkout buttons, heres "not how" to do it. :)

    But thank you for great support and a special thanks to Kim Pilgaard who has been very helpful in my quest of finding the problem.

Please Sign in or register to post replies

Write your reply to:

Draft