Copied to clipboard

Flag this post as spam?

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


  • Tim Hansen 3 posts 23 karma points
    Jun 10, 2013 @ 08:35
    Tim Hansen
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Jun 10, 2013 @ 08:49
    Anders Burla
    0

    Which Tea Commerce version do you run?

    Kind regards
    Anders

  • Tim Hansen 3 posts 23 karma points
    Jun 10, 2013 @ 09:00
    Tim Hansen
    0

    In the teacommerce .dll file it says 1.0.0.1541 :-)

    Thanks

  • Anders Burla 2560 posts 8256 karma points
    Jun 10, 2013 @ 09:04
    Anders Burla
    0

    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

  • Tim Hansen 3 posts 23 karma points
    Jun 10, 2013 @ 09:13
    Tim Hansen
    0

    Thanks alot, have a nice day :-)

  • Anders Burla 2560 posts 8256 karma points
    Jun 10, 2013 @ 09:27
    Anders Burla
    0

    Thanks - you too

  • Tomasz Kowalski 135 posts 445 karma points
    Jun 11, 2013 @ 12:41
    Tomasz Kowalski
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Jun 11, 2013 @ 17:11
    Anders Burla
    0

    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

  • Tomasz Kowalski 135 posts 445 karma points
    Jun 12, 2013 @ 13:17
    Tomasz Kowalski
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Jun 17, 2013 @ 11:26
    Anders Burla
    0

    Did you download the right branch? You should download the source code that is on branch "1.x"

    Kind regards
    Anders

  • Tomasz Kowalski 135 posts 445 karma points
    Jun 20, 2013 @ 15:23
    Tomasz Kowalski
    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

    Kind regards

    Thomas

  • Tomasz Kowalski 135 posts 445 karma points
    Nov 01, 2013 @ 13:24
    Tomasz Kowalski
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Nov 04, 2013 @ 08:14
    Anders Burla
    0

    Hi Thomas

    So the only problem right now is that the hash i wrong from test vs. live setup?

    Kind regards
    Anders

  • Tomasz Kowalski 135 posts 445 karma points
    Nov 04, 2013 @ 08:18
    Tomasz Kowalski
    0

    Yes.

    I will appreciate any help :)

    Kind regards

    Thomas

  • Anders Burla 2560 posts 8256 karma points
    Nov 04, 2013 @ 08:24
    Anders Burla
    0

    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?

  • Tomasz Kowalski 135 posts 445 karma points
    Nov 04, 2013 @ 10:02
    Tomasz Kowalski
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Nov 04, 2013 @ 14:51
    Anders Burla
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft