Copied to clipboard

Flag this post as spam?

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


  • Kamil Hadas 10 posts 119 karma points
    Sep 01, 2016 @ 08:20
    Kamil Hadas
    0

    OnFinalize event problem

    Hello Again :)

    Right now I'm trying to solve another problem. I want to make some changes in DB after Order is successful To do that I've create a method and pin it to Finalized event: enter image description here

    And after successful payment it doesn't enter this method (I’ve check and it is added to this event at application start) It goes to url that is define in Continue url. Also the payment is present in QuickPay management (I'm using test card)

    enter image description here

    I'm using QuickPay10 configuration in TeaCommerce.

    Do i do something wrong?

    Kind Regards Kamil

  • Anders Burla 2560 posts 8256 karma points
    Sep 01, 2016 @ 08:30
    Anders Burla
    0

    Hi Kamil

    The order just looks finalized at the confirmation page - but behind the sceen its just moved in session to act as finalized. True finalize happens in a server to server call. So if you run locally - then that is the first fail. You need to run on a URL the gateway can make a callback to. If you do run on a live url then you need to check the Umbraco log files and see for quickpay messages. If you run test mode you will have data logged there for possible errors with the callback.

    Kind regards

    Anders

  • Kamil Hadas 10 posts 119 karma points
    Sep 01, 2016 @ 08:46
    Kamil Hadas
    0

    OK, I understand it, So it is not possible to debug this in visual studio? I mean if this method works as expected? Only if i make my local IIS website visible on the internet?

  • Anders Burla 2560 posts 8256 karma points
    Sep 01, 2016 @ 08:53
    Anders Burla
    0

    You cant test the callback locally - but you can do it manual. Find the cart in the Tea Commerce admin and click finalize. Type in the transaction id from quickpay and the amount that was authorized. Then you finalize it and can test your custom code.

Please Sign in or register to post replies

Write your reply to:

Draft