-
4 Attachment(s)
eWAY Payment Gateway - Rapid 3.0 API [Support Thread]
Attachment 11482
This is the support thread for our latest API - Rapid 3.0. The module is attached to this post and a link to the plugin section listing will be provided when the listing is approved.
Attachment 11481
Rapid 3.0 offers complete control over the look and feel of your payment pages while reducing the merchant's scope for PCI DSS compliance. For enhanced security, you can POST credit card data directly from the customer's web browser to eWAY, bypassing the merchant's website.
Attachment 11483
Payments sent through Rapid 3.0 will pass through the Beagle system, and for those with the service enabled, also through the Beagle Alerts system (powered by ReD).
Using ReD's vast neural network of transaction data from around the globe allows eWAY to validate the transaction against a broad range of risk factors.
Rapid 3.0 is also integrated into our Token Payments solution, allowing you to save your customers payment information for use on any future purchases. Through Token Payments, you can Create Tokens, update Tokens, and Process Payments for existing tokens.
Rapid 3.0 provides a single end point for all countries where eWAY processes payments. This means if you expand your business beyond Australia, the integration will be exactly the same.
eWAY uses a complex DNS technology to ensure your payment is routed to the correct country.
Note: This module is not currently compatible with Token Payments or 3dSecure.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Our extension page is now up. Check it out HERE
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Thanks for the plugin.
I have attempted to use it in my testing environment prior to switching a site live. However my first test transaction responded with the following:
CreateAccessCode SOAP Error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.sandbox.ewaypayments.com/Soap.asmx?WSDL' : Start tag expected, '<' not found
Any idea what I have done wrong. I have used an eWay IP key and credit card 4111 1111 1111 1111 with a CSV 123.
Thanks
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Thank you for the message re the interaction with curlwrappers and the alternate approach of using the Request:Method = REST and format JSON. Unfortunately that has returned a malformed error message
PHP Warning: Invalid argument supplied for foreach() in /xxxxx/includes/modules/payment/eway_rapid/RapidAPI.php on line 51
Any additional thoughts
-
1 Attachment(s)
Re: eWAY Payment Gateway - Rapid 3.0 API
We have now submitted a new version of the module addressing some issues people were having with strange/missing SOAP configurations on their servers.
Attachment 11963
-
Re: eWAY Payment Gateway - Rapid 3.0 API
For new users of the eWAY module and especially users of previous versions, I strongly encourage you to go to the eWAY site to read the extensive manual that goes with the RAPID 3.0 implementation, the sandbox they have provided and especially to obtain your API keys for the live and sandbox environments.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
gaffer
For new users of the eWAY module and especially users of previous versions, I strongly encourage you to go to the eWAY site to read the extensive manual that goes with the RAPID 3.0 implementation, the sandbox they have provided and especially to obtain your API keys for the live and sandbox environments.
Thanks Gaffer,
I've just added to the Readme and resubmitted. Now includes link to documentation and the KB Articles for creating the API Keys.
Maclean
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Maclean
I noticed the other day that when you look at the on-line eWAY transaction report the invoice number field is blank. Is this something that can be fix or is there a setting I am missing?
Thanks
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Is anyone using the eway module for Zencart? I have been testing it (sandbox account) and so far it seems quite poor, ie response codes are not informative to the customer, eg enter a wrong year for CC expiry and it returns 06-declined. Also, if a customer clicks confirm order twice in a row it will result in a site error forcing the customer to reload and go back to the shopping cart, although the customer will receive two charges (or more, depending upon how many times they clicked).
Anyway, if anyone is using this and would like to share their url I would like to see it in action as it is possible my configuration might be improved.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Is there a way of changing the location of the Card Details form on the checkout_confirmation page? It is currently at the very bottom of the page. I would like to move it up towards the top just under "Payment Method: eWAY Credit Card"
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
robbie269
Is there a way of changing the location of the Card Details form on the checkout_confirmation page? It is currently at the very bottom of the page. I would like to move it up towards the top just under "Payment Method: eWAY Credit Card"
Check your includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_confirmation_default.php file. You should be able to jiggle the fields around.
Make a Backup First - it is easy to break the code in this file!
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Thank you Frank. That did the trick! It helps if you know where to look...
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
robbie269
Thank you Frank. That did the trick! It helps if you know where to look...
Sure does.... :smile: - have a great day!
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Had a customer who paid for part of her order with a discount voucher. She paid for the remainder with her CR card via eWay.
However eWay did not deduct the discount voucher from the total and processed the full amount. I then had to refund her the value of the discount voucher.
I do not have this problem when customers pay via PayPal.
Any ideas why this is happening?
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
robbie269
Had a customer who paid for part of her order with a discount voucher. She paid for the remainder with her CR card via eWay.
However eWay did not deduct the discount voucher from the total and processed the full amount. I then had to refund her the value of the discount voucher.
I do not have this problem when customers pay via PayPal.
Any ideas why this is happening?
Suggest you contact eWay directly, after all - you are paying for their service so they should be able to fix this issue.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Just wanted to see if it is possible to pass on the CC charges to a customer, for example:
If you get charged 2% for Master/Visa and 3% for AMEX can this be added to the customers order total before payment is done?
Cheers
Jon
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Hi robbie269
just stumbled over your post... have you been able to resolve this issue? I have got the same problem and opened a case with eway about it, but haven't heard anything yet.
thanks, Ed
Quote:
Originally Posted by
robbie269
Had a customer who paid for part of her order with a discount voucher. She paid for the remainder with her CR card via eWay.
However eWay did not deduct the discount voucher from the total and processed the full amount. I then had to refund her the value of the discount voucher.
I do not have this problem when customers pay via PayPal.
Any ideas why this is happening?
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Extracting Transaction ID from the Order, for store report, via MySQL Query (custom report).
As an alternative, I had asked eWay if they would assist in amending their module to write their transaction data to it's own table, however as the dev team were winding down for Christmas / New Year, an 'emergency measure' in the meantime was emailed to me, the following code suggestions have been presented.
Ideally I would like to see the module write to it's own tables, is this something that someone in the community could do - or is this gateway an eWay only module??
I have been communicating with eWay regarding my options, however over Christmas/New Year it may be quicker coming and asking for some further advice here.
I am adding to my store monthly sales query which I run using a custom MySQL query in MySQL Workbench and I am trying to extract the Transaction ID from each order that has been purchased using eWay, which I then match up my eWay reports transaction history in excel.
I was given these 2 pieces of code to add to my query, both work, however they only return orders with the Transaction ID, and none of those where the 'Comments' are blank or contain 'PayPal' (which I also added as an 'OR'). If someone could please assist.
----------
eWay code
Code:
select REPLACE(comments, 'eway TransactionID: ', '') from orders_status_history WHERE comments LIKE 'eway TransactionID%'
- Only returns eWay transactions
or
Code:
select orders_id, REPLACE(comments, 'eway TransactionID: ', '') AS transaction_id from orders_status_history WHERE comments LIKE 'eway TransactionID%'
----------
My code
This returns the Transaction ID, but I can't get it to return both eWay & PayPal OR eWay, blank & PayPal and if I tell it to return ALL comments, my query returns over 10,000 lines, 2/3 of which are duplicates as the customer and admins have added comments to orders.
Code:
Select
-- Get Order data --
T5.orders_id As OrdID,
DATE_FORMAT(T5.date_purchased, '%Y-%m-%d') As OrdDate,
T3.products_name As ProdName,
-- Rest of query --
REPLACE(O2.comments, '%eway Transaction%', '') as OrdCom
-- Extra query --
From /*PREFIX*/products T1
--other joins--
Left Join /*PREFIX*/orders_status_history O2 On (O2.orders_id = T2.orders_id)
----------
I was wondering about using a CASE query, however I am unsure on how to write it.
How do I extract the whole string of what is in the comments (as below), except in the case of PayPal, example under "CASE"
Code:
CASE
When(O2.comments = '%eway Transaction%') then 'eway TransactionID: xxxxxxxxx' -- eWay
When(O2.comments = '%Transaction ID%') then 'Transaction ID: 02D32743CD990491Y' -- PayPal**
When(O2.comments = ' ') then ' ' -- Blank comments
When(O2.comments = 'everything else') then ' ' -- Blank comments
End As OrdCom,
** However, PayPal comments return as below, so would want to truncate them to only between "Transaction ID and P" (Payment), any ideas??:
'Transaction ID: xxxxxxxxxxxxxxxxx
Payment Type: PayPal Express Checkout (instant)
Timestamp: 2013-09-26T18:48:09Z
Payment Status: Completed
Amount: 29.99 AUD '
In Excel I would use: =LEFT(A1,FIND("Payment",A1&"Payment")-1)
-----
Is this a lost cause, I'm sure I should be able to just extract the the TransID comments without all the other data, in a larger query, without having to run 2 separate reports and join then post run.
Thanks in advance.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Just installed this module a few weeks ago and principally I am very happy with. It has a few flaws though, one of them being that many merchant facilities only accept AUD as currency (if you are based in Australia).
Got around this issue by implementing this hack:
https://www.zen-cart.com/showthread....88#post1305188
The customer can still select their own currency when browsing and adding to the cart, but once they get to the checkout payment page the currency in the cart is forced to be the default currency and the order is recalculated in the default currency, namely AUD.
It would be good if the eWay devs could implement this in their module to invoke the default currency AUD only when this module is selected.
Frank
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Instead of modifying ZC core code (as shown in my last post), a more elegant way of overcoming the currency symbol issue is this hack:
In the file includes/modules/payment/eway_rapid.php find this code
PHP Code:
/**
* Build the data and actions to process when the "Submit" button is pressed on the order-confirmation screen.
* This sends the data to the payment gateway for processing.
* (These are hidden fields on the checkout confirmation page)
*
* @return string
*/
function process_button() {
global $db, $order, $currencies, $currency, $messageStack;
Immediately after that insert
PHP Code:
// bof force change currency code to AUD -- frank18 20160306
$show_charged_amount = false;
if (!in_array($order->info['currency'], array('AUD'))) {
// we are not in default currency so we need to change currency code to default AUD as eWay only accepts AUD
$order->info['currency'] = zen_currency_exists(DEFAULT_CURRENCY, false);
// now show the customer what they are being charged in $AUD
$show_charged_amount = true;
$displayed_amount = number_format($order->info['total'], 2, '.', '');
}
// eof force change currency code to AUD -- frank18 20160306
To show the customer what and how they are being charged, in the same file find
PHP Code:
echo '<!-- Begin eWAY Linking Code -->
Just before that code insert
PHP Code:
// bof heading added -- frank18 20160306
echo '<h2>eWAY Payment Details</h2>';
if ($show_charged_amount) {
echo '<div id="ewayRapidPayment">Your payment will be processed in Australian Dollars ($AUD)</div>';
echo 'Amount charged in $AUD ' . $displayed_amount;
}
echo '<h3>(Payment will appear on your Credit Card Statement as <b>WHATEVER YOU WANT TO SAY HERE</b>)</h3>';
// eof heading added -- frank18 20160306
With this modification we are only passing the currency code AUD instead of the customer selected currency code (eg USD, EUR, NZD etc), the functionality of the original eWay code is not changed at all.
All shopping cart and checkout pages continue to show the customer chosen currency and values.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
I've tried both eWay shared and redirect but It seems that 80% of orders although processed successfully don't redirect to the checkout confirmation page and the order isn't logged in Zen Cart.
Has anyone experienced something similar and what was the cause?
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
ivopivo
I've tried both eWay shared and redirect but It seems that 80% of orders although processed successfully don't redirect to the checkout confirmation page and the order isn't logged in Zen Cart.
Has anyone experienced something similar and what was the cause?
I've had the same thing happen a few times. It was usually when the customer had entered the CR number wrong a couple of times. Don't know a fix though sorry.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
robbie269
I've had the same thing happen a few times. It was usually when the customer had entered the CR number wrong a couple of times. Don't know a fix though sorry.
Yeah I noticed that too. If you leave spaces in the numbers, it won't give an error, just redirect to the main page. Seems like a very "raw" module. Would have thought eWay would have made more of an effort. Guessing they don't have many Zen Cart users.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
ivopivo
Seems like a very "raw" module. Would have thought eWay would have made more of an effort. Guessing they don't have many Zen Cart users.
I've had people put in two payments for one order a few times too. It happens when they hit the button twice. Module needs a wait wheel so that people know to wait!
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
ivopivo
I've tried both eWay shared and redirect but It seems that 80% of orders although processed successfully don't redirect to the checkout confirmation page and the order isn't logged in Zen Cart.
Has anyone experienced something similar and what was the cause?
Have used eWay now for some months, never had this happening.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
Have used eWay now for some months, never had this happening.
It doesn't happen very often. I've been using it for just over 2 years and it has maybe happened 3 times. Only customers that repeatedly put in the wrong number or number format. I think Zencart only gives you so many tries and maybe Eway gives you more??
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
Have used eWay now for some months, never had this happening.
Shared or transparent redirect?
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
robbie269
I've had people put in two payments for one order a few times too. It happens when they hit the button twice. Module needs a wait wheel so that people know to wait!
Happened to me once (customer hit the button twice) and implemented this (wait wheel or similar) in a 1.5.4 store.
Found an animated "We are processing your payment.... Please Wait" image in a Google image search (use whatever suits you but observe the Copyright notice). Named that image processing_animation.gif and placed it into the /images folder for use with any template.
Then open includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_confirmation_default.php - scroll to the bottom of the file and find
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
change to
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="centeredContent"><img id="actionImg" src = "images/processing_animation.gif" class="hiddenField" /></div>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?><br /><?php echo '<b>Press ONLY ONCE ....</b>';?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
That image also shows up for other payment modules (eg PayPal ... slow response etc) - never had this issue ever since.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
ivopivo
Shared or transparent redirect?
redirect
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
redirect
Ironically, the change you posted above has it working now (at least in sandbox mode) :shocking:
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
That image also shows up for other payment modules (eg PayPal ... slow response etc) - never had this issue ever since.
Thank you! I'll do that as soon as I find a nice image.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
<div class="centeredContent"><img id="actionImg" src = "images/processing_animation.gif" class="hiddenField" />
Does the image only show if there is a delay? Can't see it when I do a test order.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
robbie269
Does the image only show if there is a delay? Can't see it when I do a test order.
Yes, it only shows if there is a delay. Can't do a test using Direct Bank Deposit or similar. Best to do a test with PayPal as you can still cancel when you get to PP.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Is there anyway to pass onto the eway invoice text the attributes/sizing of the product rather than just the product name?
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
Yes, it only shows if there is a delay. Can't do a test using Direct Bank Deposit or similar. Best to do a test with PayPal as you can still cancel when you get to PP.
If it still does not work for you then open
includes/modules/pages/checkout_confirmation/jscript_main.php
and find
PHP Code:
function submitonce()
{
Change that function to read
PHP Code:
function submitonce()
{
var button = document.getElementById("btn_submit");
var img = document.getElementById("actionImg");
button.style.cursor="wait";
button.disabled = true;
button.className = 'hiddenField';
img.className = '';
setTimeout('button_timeout()', 5000);
return false;
}
Hope this helps
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
ivopivo
Is there anyway to pass onto the eway invoice text the attributes/sizing of the product rather than just the product name?
The eWay developers should have the right answer for you - I have not played with this....
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
frank18
Happened to me once (customer hit the button twice) and implemented this (wait wheel or similar) in a 1.5.4 store.
Found an animated "We are processing your payment.... Please Wait" image in a Google image search (use whatever suits you but observe the Copyright notice). Named that image processing_animation.gif and placed it into the /images folder for use with any template.
Then open includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_confirmation_default.php - scroll to the bottom of the file and find
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
change to
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="centeredContent"><img id="actionImg" src = "images/processing_animation.gif" class="hiddenField" /></div>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?><br /><?php echo '<b>Press ONLY ONCE ....</b>';?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
That image also shows up for other payment modules (eg PayPal ... slow response etc) - never had this issue ever since.
If the image does not show when the order confirmation button is clicked the open the file
includes/modules/pages/checkout_confirmation/jscript_main.php
and find
PHP Code:
function submitonce()
Change the entire function to read
PHP Code:
function submitonce()
{
var button = document.getElementById("btn_submit");
var img = document.getElementById("actionImg");
button.style.cursor="wait";
button.disabled = true;
button.className = 'hiddenField';
img.className = '';
setTimeout('button_timeout()', 5000);
return false;
}
You can change the timeout value to anything lesser or more.
Hope this helps.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
I am getting the following error message on the checkout confirmation page:
CreateAccessCode SOAP Error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.ewaypayments.com/soap.asmx' : failed to load external entity "https://api.ewaypayments.com/soap.asmx"
I have tried changing the request method to rest in the config.ini file but I still receive the error.
Has anyone got this working with zen cart 1.5.5e?
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Quote:
Originally Posted by
etrader
I am getting the following error message on the checkout confirmation page:
CreateAccessCode SOAP Error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.ewaypayments.com/soap.asmx' : failed to load external entity "https://api.ewaypayments.com/soap.asmx"
I have tried changing the request method to rest in the config.ini file but I still receive the error.
Has anyone got this working with zen cart 1.5.5e?
Works fine here (1.5.5e). Suggest you get in touch with eWay tech dept.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Hi Guys,
I have signed upto Eway as the gateway for card payments. They sent me a mail where i was able to generate the API codes and password. Also, in a separate mail i got a plugin. What do i do now? How do i insert the plugin? I am not a IT pro. Do i copy and paste this in a page or what is the process. Please guide me. Thanks in advance.
-
Re: eWAY Payment Gateway - Rapid 3.0 API
Hi all, has anyone had this up and running on 1.5.7? Just checking before I make any recommendations around using eWAY on the newer versions.