close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Powerstore 2 setup, using eWay (Australia) as the Payment Gateway.

Thread began 3/28/2010 3:41 pm by jebrandon343719 | Last modified 3/30/2010 3:44 pm by maclean.cherry404527 | 1787 views | 5 replies |

jebrandon343719

Powerstore 2 setup, using eWay (Australia) as the Payment Gateway.

I have followed your instructions for setting up eWay as the payment gateway, but it is not working for me.
I always land on the checkout_failure page.
To check the code(debug) I set up session variables to pass the response from eway, plus the required parameters.
It looks like the code runs, but there is nothing in the parameters sent to eway!

Sign in to reply to this post

Jason ByrnesWebAssist

when you get to the checkout_failure page, is there a query string variable in the URL like:
checkout_failure.php?shipping=false


it may be that shipping rate lookup is failing and causing the redirect to the checkout failure page.


try adding the following to the failure page for troubleshooting:

php:
<?php  

 
if(!session_id()) session_start(); 
    echo 
"eWay Full Request: ".(isset($_SESSION["eWAY_XML_postedValuest"])?htmlentities($_SESSION["eWAY_XML_postedValues"]):"n/a")."<br />";  
     echo 
"eWay Full Response: ".(isset($_SESSION["eWAY_XML"])?htmlentities($_SESSION["eWAY_XML"]):"n/a")."<br /></p>";  
     echo 
"<p>UPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."<br /></p>";  

     echo 
"<p>FedEX: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>";  

     echo 
"<p>USPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."<br /></p>";  
?>
Sign in to reply to this post

jebrandon343719

thanks

Thanks, I was looking for this code.
I think I have it sorted. While is test mode, I can only use a Total cart value of $10. This means I have to comment out shipping calculations.

This is my first time setting up a gateway. Is this the normal proceedure for testing?

Sign in to reply to this post

jebrandon343719

Expected something different

Hi,
I trimmed down your code to just the Eway code -
<?php
if(!session_id()) session_start();
echo "eWay Full Request: ".(isset($_SESSION["eWAY_XML_postedValuest"])?htmlentities($_SESSION["eWAY_XML_postedValues"]):"n/a")."<br />";
echo "eWay Full Response: ".(isset($_SESSION["eWAY_XML"])?htmlentities($_SESSION["eWAY_XML"]):"n/a")."<br /></p>";

}?>

This is what I go on my failure page -
eWay Full Request: n/a

Warning: htmlentities() expects parameter 1 to be string, array given in /home/dec47011/public_html/checkout_failure.php on line 317
eWay Full Response:

What do you make of this?

Sign in to reply to this post

Jason ByrnesWebAssist

try this code instead:

php:
<?php

if(!session_id()) session_start();
echo 
"eWay Full Request: ".(isset($_SESSION["eWAY_XML_postedValuest"])?$_SESSION["eWAY_XML_postedValues"]:"n/a")."<br />";
echo 
"eWay Full Response: ".(isset($_SESSION["eWAY_XML"])?$_SESSION["eWAY_XML"]:"n/a")."<br /></p>";

}
?>
Sign in to reply to this post

maclean.cherry404527

Hello,

My name is Maclean and I'm a Senior Support Engineer at eWAY.

Have the above fixes worked for you or do you require further assistance?

On the test gateway there is no requirement for the amount however the response code will be based off the last 2 digits of the total amount passed.

eg: Pass $10.02 you will receive response code 02 which implies a failed transaction. Passing $1.00 will result in response code 00 which is a successful transaction.

Please feel free to contact us on support@eway.com.au

Kind Regards,

Maclean

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...