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
[facebook_ilike]
April 17th, 2012 - 04:24
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!
Kelvin
June 1st, 2012 - 15:01
Hi Kelvin,
We have recommended this patch to many eWAY / Magento customers and it’s still working with the latest Magento release.
July 4th, 2012 - 14:29
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
October 23rd, 2012 - 10:13
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?
September 11th, 2012 - 12:07
Hi,
When using a proper eway sandbox account, it seems the beagle url is different.
It should be:
https://www.eway.com.au/gateway_cvn/xmltest/BeagleTest.asp
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’;
}
}else{
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’;
}
}
}
October 23rd, 2012 - 10:12
Cool – I’ll spend some time on the weekend updating my patch and the article
August 13th, 2013 - 13:21
Hey,
Just wondering if this got updated?