Copied to clipboard

Flag this post as spam?

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


  • Bjørn Fridal 274 posts 784 karma points
    Mar 18, 2013 @ 10:29
    Bjørn Fridal
    0

    Quickpay MD5 checksum problem

    Hi,

    I am trying to get Tea Commerce to work with QuickPay.dk but I get a MD5 checksum error when I go from the shop to quickpay.dk

    I have followed the blog post on QuickPay here http://anders.burla.dk/umbraco/tea-commerce/using-quickpay-wit-tea-commerce/ I have no problem when I test with the test examples from quickpay.dk 

    I have calculated the MD5 checksum manually and I can see that its different from the one generated by Tea Commerce. Is it possible to see how Tea Commerce generates it?

    Cheers
    Bjørn Fridal

  • Bjørn Fridal 274 posts 784 karma points
    Mar 18, 2013 @ 10:39
    Bjørn Fridal
    0

    I might add that I am using the latest version of Tea Commerce and the latest version of the starter kit.

  • Anders Burla 2560 posts 8256 karma points
    Mar 18, 2013 @ 10:54
    Anders Burla
    0

    Hi Bjørn

    The payment providers for Tea Commerce is open source so you can see exactly how it is generated :)

    https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    Kind regards
    Anders

  • Bjørn Fridal 274 posts 784 karma points
    Mar 18, 2013 @ 13:14
    Bjørn Fridal
    0

    Hi Anders,

    Thanks. Open sourcing the payment providers is really cool.

    It still wont work though. As I mentioned I am using the new Starter Kit for Tea Commerce 2.0

    Do you know if the new version or the new starter kit has been tested with Quickpay?

    Cheers
    Bjørn 

  • Anders Burla 2560 posts 8256 karma points
    Mar 18, 2013 @ 13:29
    Anders Burla
    0

    I have tested the payment providers but maybe there is a bug somewhere. But the code is converted for 2.0 so its been pretty testing using the 1.x code base. Try and build the project and attach to the process and see what data is send.

    Kind regards
    Anders

  • Bjørn Fridal 274 posts 784 karma points
    Apr 05, 2013 @ 13:25
    Bjørn Fridal
    100

    Hi,

    Better report back now when I still remember what I did to fix it.

    Made a copy of the QuickPay provider here https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers/src/3154c735ea9134528b08482e83999d57208eb3df/Source/TeaCommerce.PaymentProviders/QuickPay.cs?at=default

    And removed this from line 80:

    GetMd5Hash( string.Join( "", htmlForm.InputFields.Values ) + settings[ "md5secret" ] );

    and replaced it with this code: https://gist.github.com/bjawnie/5318572

    Now the MD5 checksum is calculated correct.

    Cheers and thanks for the pointers
    Bjørn 

     

  • Anders Burla 2560 posts 8256 karma points
    Apr 05, 2013 @ 14:04
    Anders Burla
    0

    Nice one! I have just updated the Quickpay provider so it looks almost like your code. Could you try and fetch it and give it a go and tell me if it works? I have also upgraded so it uses version 7 of their protocol instead of version 4. Just build and replace you dll files in the website.

    Kind regards
    Anders

  • Bjørn Fridal 274 posts 784 karma points
    Apr 05, 2013 @ 14:26
    Bjørn Fridal
    0

    Cool I will see if I get the time to test is over the weekend :)

    Cheers
    Bjørn 

  • Bjørn Fridal 274 posts 784 karma points
    Apr 12, 2013 @ 22:36
    Bjørn Fridal
    0

    Yup it looks to be working just fine. Thanks.

    Cheers
    Bjørn 

Please Sign in or register to post replies

Write your reply to:

Draft