Copied to clipboard

Flag this post as spam?

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


  • Richard Eyres 98 posts 580 karma points
    Jul 01, 2013 @ 18:03
    Richard Eyres
    0

    Not all orders are being finalised from Worldpay

    Greetings

    This is related to Tea Commerce 1.4.3.2

    We have a little binary that hooks up to the AfterOrderFinalized event to generate and send out vouchers for the products the users have purchased. This process works without any issues and we are happy with it.

    All payment is made via 1 payment provider (Worldpay). The vast majority of orders are working correctly, but we have noticed a few that seem to be slipping through the gaps. 

    The AfterOrderFinalized event is being fired when an order has been made (checking WorldPay shows that the payment has been authorised and captured, and a few days later it has been completed). However, none of the transactional information has been stored within the database. Checking the orders table, the transaction Name/ID are still null, and IsOrder is set to false.

    As we have automated the voucher process, we dont access the order from the backend (unless they have asked for a printed version), so this was not picked up. The fact that the order data is not being updated after the transaction has completed is affecting our stats and what we will charge the client.

    The log shows no errors, and as stated earlier, the vast majority of the orders follow the correct process.

     

    The query, is there a way for the WebshopEvents.AfterOrderFinalized to be triggered without the order data being updated? Have you noticed this issue in any of your testing, and if so is there any work arounds? Is there a facility where we can check the AfterORderFinalized event to check that IsOrder is false and requested an update from Worldpay before proceeding?

    If you need any further information then please let me know. I can email you code we have been using for the event to see if that is causing the issue.

     

    Thank you in advance

  • Anders Burla 2560 posts 8256 karma points
    Jul 02, 2013 @ 02:19
    Anders Burla
    0

    Hi Richard

    What Umbraco version do you run?

    The Tea Commerce event system is just normal .NET event hooks - and they are called 100% correctly. Its been tested, tested and even tested some more :)

    Most often the error occure in the 3 party event code that developers write - so that is the first place to log anything. If the IsOrder is false - then the callback didnt happend - OR there did happen an error in the callback. That error will be in the umbracoLog DB table or the App_Data/Logs depending on your Umbraco version - this is just a normal .NET exception that would happen.

    Try to see if you can find a pattern for the orders that doesnt get finalized by WorldPay - then it would be much more simple for my to hlep you :)

    Kind regards
    Anders

  • Richard Eyres 98 posts 580 karma points
    Jul 02, 2013 @ 11:40
    Richard Eyres
    0

    Thanks for the reply Anders. We are on Umbraco Version 4.9.1.

    All in all, out of 60000 orders, only 6 have been missed. We are trying to hunt down the errors, but can not locate anything. There is nothing in common with the orders, and World Pay don't report anything. (Products are different, different times of day/month, data looks good etc). Its only happened within the last couple of months, and we have done no changes to the system during that time. 

    We have added some extra logging/checking to notify us if it happens again. Hopefully we can build up a picture of why the finsalixed is being called without the order being updated first.

    Regards 

     

  • Anders Burla 2560 posts 8256 karma points
    Jul 02, 2013 @ 20:35
    Anders Burla
    0

    Yeah - sounds good with the extra logging. Sounds weird - lets hope you can dig up some extra info.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft