Is it possible that the ePay payment window can be an integrated part of a website? Under "Settings -> Orders -> Payment methods -> Credit Card" i can only find the "Open in popup" setting.
You can see that in the Umbraco interface. See the Developers -> Packages -> Installed packages. But I can see that it is version 1.x. The ePay provider was updated for 2.x to support all the new features. So you properly have to download the source code of the payment provider project for 1.x and then update it to support the same code that is written for 2.x.
I'm trying to update this payment provider for Tim, but this ZIP file, I have downloaded from bitbucket contains no Service og Web references (ePayService, wannafindservice,...) and some cs files (ePay.cs, wannafind.cs, worldpay.cs). Should I just download them file by file from source, or should I add service references by myself?
You should clone the project and download it with e.g. TortioseHG. Then you get the entire source code as a Visual Studio project that is ready to edit and build for your needs.
Thank you for help, but be patient, I need more :)
I have downloaded source via TortoiseHG and compiled, but ater copying TeaCommerce.PaymentProviders.dll to bin directory, all XSLT macros stopped working.
What should I change in source code to make it work with TeaCommerce 1.4.1.2 and Umbraco 4.7.0?
I thought so, but I have done this once more. This time I\m getting this error, when I want to Build project:
Error 1 'TeaCommerce.PaymentProviders.ePay.SubmitJavascriptFunction(System.Collections.Generic.Dictionary<string,string>, System.Collections.Generic.Dictionary<string,string>)': cannot override because 'TeaCommerce.Data.Payment.APaymentProvider.SubmitJavascriptFunction' is not a function \\Admin05\Brugere\TK\Visual Studio 2010\Projects\paymprov1\Source\TeaCommerce.PaymentProviders\ePay.cs 84 28 TeaCommerce.PaymentProviders
I have successfully downloadet right 1.x branch of PaymentProviders, compiled and build. It works fine with test payment window on ePay, but when I test it on real payment window, I'm getting error: "The value ofhashis not valid."
I can see in source code that version 1.x and 2 send same fields to provider, but 1.x uses GetMD5Hash to build "hash", and 2 uses GenerateMD5Hash.
Client has not changed MD5 security check key in ePay administration.
Unfortunately I need to dig this problem a little more, beacuse there is problem with moving webshop to newest TeaCommerce...
There is no difference in the way the hashing happens between test and live. So did you configure the ePay correct and did you change from test to live in Tea Commerce?
But I will try to explain all again, because this is a little bit "mysterious"...
When live site (licensed TC 1.4.1.2, Umbr. 4.7) uses "old" TeaCommerce.PaymentProviders.dll (installed with package), it runs correct, but shows old ePay popup window.
I have also a test site, which is exact copy of live site, but without orders, because it runs "demo" TC (because it runs on different domain). It uses also different ePay test payment gateway.
I have built latest TeaCommerce.PaymentProviders for TC 1.x. I have compared it to sourcecode of PaymentProviders for TC 2, and I can see that it is using same fields for build hash code.
Next, I have copied newly built TeaCommerce.PaymentProviders.dll to bin folder at test site - and it works good - opens the new payment window (but it is test window).
Next step is at copy this dll to live site. Payment window is configured same as this for test site (but has different merchant number). And it doesn't matter if I run it as test or as not test, I always get error from epay:
(I have removed merchant number and homepage adress)
I can't test live site with this test payment window I'm using for test site, because TC says at there is over 20 orders (different domain) - and I can not remove them...
At the live site. Just delete the orders in the DB if they are test orders - recycle the website and you can now test again.
If you test works - then be sure that your live setup runs same umbraco version, same Tea Commerce and same tea commerce payment providers. Because it seems like there is a difference. Or maybe the hash isn't entered correctly in either ePay or TC - be sure to copy it :)
ePay payment window
Hello guys
Is it possible that the ePay payment window can be an integrated part of a website? Under "Settings -> Orders -> Payment methods -> Credit Card" i can only find the "Open in popup" setting.
Thank you
Which Tea Commerce version do you run?
Kind regards
Anders
In the teacommerce .dll file it says 1.0.0.1541 :-)
Thanks
You can see that in the Umbraco interface. See the Developers -> Packages -> Installed packages. But I can see that it is version 1.x. The ePay provider was updated for 2.x to support all the new features. So you properly have to download the source code of the payment provider project for 1.x and then update it to support the same code that is written for 2.x.
The source code is available here:
https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers
Kind regards
Anders
Thanks alot, have a nice day :-)
Thanks - you too
Hej Anders,
I'm trying to update this payment provider for Tim, but this ZIP file, I have downloaded from bitbucket contains no Service og Web references (ePayService, wannafindservice,...) and some cs files (ePay.cs, wannafind.cs, worldpay.cs). Should I just download them file by file from source, or should I add service references by myself?
Regards
Thomas
Hi Thomas
You should clone the project and download it with e.g. TortioseHG. Then you get the entire source code as a Visual Studio project that is ready to edit and build for your needs.
Kind regards
Anders
Hi Anders,
Thank you for help, but be patient, I need more :)
I have downloaded source via TortoiseHG and compiled, but ater copying TeaCommerce.PaymentProviders.dll to bin directory, all XSLT macros stopped working.
What should I change in source code to make it work with TeaCommerce 1.4.1.2 and Umbraco 4.7.0?
Kind regards
Thomas
Did you download the right branch? You should download the source code that is on branch "1.x"
Kind regards
Anders
I thought so, but I have done this once more. This time I\m getting this error, when I want to Build project:
Error 1 'TeaCommerce.PaymentProviders.ePay.SubmitJavascriptFunction(System.Collections.Generic.Dictionary<string,string>, System.Collections.Generic.Dictionary<string,string>)': cannot override because 'TeaCommerce.Data.Payment.APaymentProvider.SubmitJavascriptFunction' is not a function \\Admin05\Brugere\TK\Visual Studio 2010\Projects\paymprov1\Source\TeaCommerce.PaymentProviders\ePay.cs 84 28 TeaCommerce.PaymentProviders
Kind regards
Thomas
Hej igen Anders,
Back to case...
I have successfully downloadet right 1.x branch of PaymentProviders, compiled and build. It works fine with test payment window on ePay, but when I test it on real payment window, I'm getting error: "The value of hash is not valid."
I can see in source code that version 1.x and 2 send same fields to provider, but 1.x uses GetMD5Hash to build "hash", and 2 uses GenerateMD5Hash.
Client has not changed MD5 security check key in ePay administration.
Unfortunately I need to dig this problem a little more, beacuse there is problem with moving webshop to newest TeaCommerce...
Kind regards
Thomas
Hi Thomas
So the only problem right now is that the hash i wrong from test vs. live setup?
Kind regards
Anders
Yes.
I will appreciate any help :)
Kind regards
Thomas
There is no difference in the way the hashing happens between test and live. So did you configure the ePay correct and did you change from test to live in Tea Commerce?
I think so...
But I will try to explain all again, because this is a little bit "mysterious"...
When live site (licensed TC 1.4.1.2, Umbr. 4.7) uses "old" TeaCommerce.PaymentProviders.dll (installed with package), it runs correct, but shows old ePay popup window.
I have also a test site, which is exact copy of live site, but without orders, because it runs "demo" TC (because it runs on different domain). It uses also different ePay test payment gateway.
I have built latest TeaCommerce.PaymentProviders for TC 1.x. I have compared it to sourcecode of PaymentProviders for TC 2, and I can see that it is using same fields for build hash code.
Next, I have copied newly built TeaCommerce.PaymentProviders.dll to bin folder at test site - and it works good - opens the new payment window (but it is test window).
Next step is at copy this dll to live site. Payment window is configured same as this for test site (but has different merchant number). And it doesn't matter if I run it as test or as not test, I always get error from epay:
The value of hash is not valid.
Read more here: http://tech.epay.dk/en/specification#281
[merchantnumber] => XXXXXXX
[language] => 2
[accepturl] => http://XXXXXXX.dk/tcbase/teacommerce/PaymentContinue/ePay/A5F49702527AF5B6222C3A08B4EB03B4.aspx
[declineurl] => http://XXXXXXX.dk/en/kurv2trin/payment-error.aspx
[instantcapture] => 0
[cardtype] => 0
[windowstate] => 1
[orderid] => ORDER-964
[currency] => 208
[amount] => 19900
[cancelurl] => http://XXXXXXX.dk/tcbase/teacommerce/PaymentCancel/ePay/A5F49702527AF5B6222C3A08B4EB03B4.aspx
[callbackurl] => http://XXXXXXX.dk/tcbase/teacommerce/PaymentCallback/ePay/A5F49702527AF5B6222C3A08B4EB03B4.aspx
[instantcallback] => 1
[ownreceipt] => 1
[hash] => 35dfa89f5aa17a1fffbcdd36efa15f41
(I have removed merchant number and homepage adress)
I can't test live site with this test payment window I'm using for test site, because TC says at there is over 20 orders (different domain) - and I can not remove them...
So... it's complicated...
Kind regards
Thomas
At the live site. Just delete the orders in the DB if they are test orders - recycle the website and you can now test again.
If you test works - then be sure that your live setup runs same umbraco version, same Tea Commerce and same tea commerce payment providers. Because it seems like there is a difference. Or maybe the hash isn't entered correctly in either ePay or TC - be sure to copy it :)
Kind regards
Anders
is working on a reply...