Dave Heavy Industries Dave Heavy Industries – blog


Magento eWay Beagle patch

Fontis wrote an eWay payment gateway module for magento which works really well, but it doesn't support beagle (anti-fraud) stuffs. I've written a quick patch to change the gateway url and append the necessary fields. Minimal testing has been peformed. Highly recommend sandbox/heavy testing before production use.

With the test account number of 87654321 or 12345678, it will error with "This service has not been enabled for this merchant". Beagle doesn't work on the test customer id, but it does validate the xml - so it should be all good with a beagle enabled customer id.

this was patched against version 1.2.4. other versions might work.

Module available here http://www.magentocommerce.com/magento-connect/Fontis/extension/3671/fontis_ewayau
My patch available here http://www.daveheavyindustries.com/files/ewaybeagle.patch

to patch the files. copy the .patch file into the magento root and run

patch  -p4 < ewaybeagle.patch

If you've already modified the files, I would recommend you uninstall the module and re-install before continuing.

patched files here - http://www.daveheavyindustries.com/files/EwayAu-modified.tbz

Test Card Information

CustomerId - 87654321
Visa - 4444333322221111 01/11
CVV2 -123


Comments (7) Trackbacks (0)
  1. Hello Dave, its been a year since this post was created. Do you know if anybody used your patch and how well it works?
    Thank you for taking your time and posting this patch!

  2. Hi Dave,

    Thanks for the patch.

    We have installed the modified files on our 1.7 test store and have noticed now when we select eWay as a payment method there are no fields to enter card details.

    Any ideas?

    Thanks again

    • I’ll run up a 1.7 store and test it out Anthony, although I’ve had other people tell me 1.7 works fine with the patch – have you checked your error logs?

  3. Hi,

    When using a proper eway sandbox account, it seems the beagle url is different.
    It should be:


    Thus, i adjusted the url function to this:

    * Get api url of eWAY Direct payment
    * @return string
    public function getApiGatewayUrl()
    if (Mage::getStoreConfig(‘payment/ewayau_direct/use_anti_fraud’)) {
    if(Mage::getStoreConfig(‘payment/ewayau_direct/test_gateway’)) {
    return ‘https://www.eway.com.au/gateway_cvn/xmltest/BeagleTest.aspx’;
    } else {
    return ‘https://www.eway.com.au/gateway/xmlpayment.asp’;
    if(Mage::getStoreConfig(‘payment/ewayau_direct/test_gateway’)) {
    return ‘https://www.eway.com.au/gateway/xmltest/testpage.asp’;
    } else {
    return ‘https://www.eway.com.au/gateway/xmlpayment.asp’;

  4. Hey,

    Just wondering if this got updated?

Leave a comment

No trackbacks yet.