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?
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.
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.
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
I might add that I am using the latest version of Tea Commerce and the latest version of the starter kit.
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
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
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
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
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
Cool I will see if I get the time to test is over the weekend :)
Cheers
Bjørn
Yup it looks to be working just fine. Thanks.
Cheers
Bjørn
is working on a reply...