The eWAY 3-D Secure Payment Solution uses HTML <FORMS> which is HTML-specific,
not operating-system specific. Any web page that can POST an HTML FORM can communicate
with the eWAY Shared Payment Solution, on any operating system, eg Windows,
Linux, Mac etc.
- ASP Code
The URL the form tag must post to eWAY gateway payment page is...
https://www.eway.com.au/gateway_3d/payment.asp
Below is an example of the ASP code required to link to eWAY.
ASP Code sample - copy and paste, then modify values using form elements or a querystring.
ASP Code sample - result page on YOUR site.
PLEASE MAKE SURE YOU PASS YOUR eWAYCUSTOMERID ONLY -
passing any other ID may result in funds being deposited into another bank account
other than your own. Change the eWAYCustomerID in the sample code from 87654321
to your OWN eWAYcustomerID.
- ColdFusion
The URL the form tag must post to eWAY gateway payment page is...
https://www.eway.com.au/gateway_3d/payment.asp
Below is an example of the Cold Fusion code required to link to eWAY.
Cold Fusion Code sample - copy and paste, then modify values using form elements
or a querystring.
Cold Fusion Code sample - result page on YOUR site.
PLEASE MAKE SURE YOU PASS YOUR eWAYCUSTOMERID ONLY -
passing any other ID may result in funds being deposited into another bank account
other than your own. Change the eWAYCustomerID in the sample code from 87654321
to your OWN eWAYcustomerID.
- VB .NET
The URL the form tag must post to eWAY gateway payment page is...
https://www.eway.com.au/gateway_3d/payment.asp
Below is an example of the VB.NET code required to link to eWAY.
Download the VB sample code
PLEASE MAKE SURE YOU PASS YOUR eWAYCUSTOMERID ONLY -
passing any other ID may result in funds being deposited into another bank account
other than your own. Change the eWAYCustomerID in the sample code from 87654321
to your OWN eWAYcustomerID.
- C# .NET
The URL the form tag must post to eWAY gateway payment page is...
https://www.eway.com.au/gateway_3d/payment.asp
Below is an example of the C#.NET code required to link to eWAY.
Download the C# sample code
PLEASE MAKE SURE YOU PASS YOUR eWAYCUSTOMERID ONLY -
passing any other ID may result in funds being deposited into another bank account
other than your own. Change the eWAYCustomerID in the sample code from 87654321
to your OWN eWAYcustomerID.
- Perl
The URL the form tag must post to eWAY gateway payment page is...
https://www.eway.com.au/gateway_3d/payment.asp
Below is an example of the PERL code required to link to eWAY.
PERL Code sample - copy and paste, then modify values using form elements or a querystring.
PERL Code sample - result page on YOUR site.
PLEASE MAKE SURE YOU PASS YOUR eWAYCUSTOMERID ONLY -
passing any other ID may result in funds being deposited into another bank account
other than your own. Change the eWAYCustomerID in the sample code from 87654321
to your OWN eWAYcustomerID.
You can build and test your site to link to eWAY before you have
joined. All you need to do is pass the required test account information. This uses
the real payment page so there is little changes required once you have joined eWAY.
Pass the following information:
- eWAYCustomerId = "87654321" (eWAYTestID)
- The value passed in eWAYTotalAmount will generate the Response
Code, Response Text, and determine whether or not the transaction was successful.
The cents value (last 2 digits) of the amount passed will be the Response Code returned
- e.g. if "100" is passed ($1.00), the Response Code will be "00", or if "1015"
is passed ($10.15), the Resonse Code will be "15". These Response Codes also generate
the Response Text, and thus the value returned in ewayTrxnError.
View All Response Codes, and associated Response Text
Note: Your eWAYCustomerID is emailed to you in
your "eWAY Welcome Letter" when you join eWAY.
A demo test page is available for download.
(Right click on this link and select "Save as..")
A successful transaction returns (Example):
- eWayTrxnStatus = "True"
- eWayTrxnReference = "1010054" (Varies)
- eWAYresponseCode = "08"
- eWAYresponseText = "TRANSACTION APPROVED(Test Gateway)"
- eWAYAuthCode = "123456"
While a failed transaction returns:
- eWayTrxnStatus = "False"
- eWayTrxnReference = "1010055" (Varies)
- eWAYresponseCode = "31"
- eWAYresponseText = "CARD NOT VALID(Test Gateway)"
- eWAYAuthCode = ""
Address of the payment page is
https://www.eway.com.au/gateway_3d/payment.asp
PLEASE MAKE SURE YOU PASS YOUR eWAYCUSTOMERID or the eWAYTESTID of "87654321"
ONLY - passing any other ID may result in funds being deposited into
another bank account other than your own.