Stored Payments (Shared)

Stored Payments allows eWAY to store a transaction without processing it until the merchant gives approval via MYeWAY. This can be useful for merchants who are drop-shipping or selling made-to-order goods.
 

Linking to eWAY

Below are the specifications for using Stored Payments, including descriptions of the fields sent to and returned by our payment gateway.

You can download sample code from MYeWAY, along with many other free resources.

Stored (Shared) Payments

The gateway URL is https://www.eway.com.au/gateway/storedpayment.asp

Transaction request
Field Name Maximum Length Required?
ewayCustomerID 8 Required
ewayTotalAmount 12 Required
ewayCustomerFirstName 50  
ewayCustomerLastName 50  
ewayCustomerEmail 50  
ewayCustomerAddress 255  
ewayCustomerPostcode 6  
ewayCustomerInvoiceDescription 255  
ewayCustomerInvoiceRef 50  
ewayCardHoldersName 50  
ewayCardNumber 20  
ewayCardExpiryMonth 2  
ewayCardExpiryYear 2  
ewayTrxnNumber 16  
ewayOption1 255  
ewayOption2 255  
ewayOption3 255  

Example HTML

<table border="1" width="70%" cellspacing="0" cellpadding="5" bordercolor=" #000080">
 <tr>
  <td width="22%" valign="top">
   <p class="subtitle">
    <a href="http://www.eway.com.au" target="_blank">
     <img alt="eWAY - a total e commerce solution" border="0" height="91" src="http: //www.eway.com.au/_images/common/eway_logos/eway_logo.png" width="200" /></a>
   </p>
  </td>
  <td width="78%" valign="top" bgcolor="#ffffff">
   <form method="post" action="https://www.eway.com.au/gateway/storedpayment.asp">
    <input type="hidden" name="ewayCustomerID" value="87654321" />
    <input type="hidden" name="ewayTotalAmount" value="10" />
    <input type="hidden" name="ewayCustomerFirstName" value="Roxarne" />
    <input type="hidden" name="ewayCustomerLastName" value="Paton" />
    <input type="hidden" name="ewayCustomerEmail" value="customer@theirsite.com.au" />
    <input type="hidden" name="ewayCustomerAddress" value="18 Mayne Street Parkes NSW" />
    <input type="hidden" name="ewayCustomerPostcode" value="2870" />
    <input type="hidden" name="ewayCustomerInvoiceDescription" value="ASP code e-postcard" />
    <input type="hidden" name="ewayCustomerInvoiceRef" value="webactive002" />
    <input type="hidden" name="ewayURL" value="http://www.yourwebsite.com.au/eway/result.asp">
    <input type="hidden" name="ewaySiteTitle" value="WebActive" />
    <input type="submit" value="Process Secure Credit Card Transaction using eWAY" name="submit"/>
   </form>
  </td>
 </tr>
</table>

Transaction response
Field Name Maximum Length
ewayTrxnStatus 6
ewayTrxnNumber 16
ewayResponseCode 16
ewayResponseText 16
ewayTrxnReference 50
ewayTrxnOption1 255
ewayTrxnOption2 255
ewayTrxnOption3 255
ewayAuthCode 6
ewayReturnAmount 12

Sent to eWAY
Field name Description
ewayCustomerID Your unique eWAY customer ID assigned to you when you join eWAY. eg 87654321
ewayTotalAmount The total amount in cents for the transaction, eg $1.00 = 100
ewayCustomerFirstName The first name of your customer making a purchase at your site.
ewayCustomerLastName The last name of your customer making a purchase at your site.
ewayCustomerEmail The email address of your customer making a purchase at your site.
ewayCustomerAddress The address of your customer making a purchase at your site including state, city and country.
ewayCustomerPostcode The postcode of your customer making a purchase at your site.
ewayCustomerInvoiceDescription A description of the products or services purchased.
ewayCustomerInvoiceRef A reference to your own invoice system for the purchase.
eWAYURL The URL of a page on your site. Once the transaction is complete the user can easily return to your site.
eWAYSiteTitle The name of your website will be displayed on the Shared Page for the user to see.
eWAYAutoRedirect Once a transaction is complete the user is automatically forwarded to the eWAYURL, where the results of the transaction can be logged and displayed. Pass "1" to enable, any other value disables this feature.
eWAYresponseCode The status code of a transaction returned from the bank. See response code page for details
eWAYresponseText A text message describing the status of a transactions returned from the bank. See response code page for details
ewayTrxnReference This value is returned to your website. It contains a unique eWAY transaction number. This number can then be used to query any transaction in the future if required.
ewayOption1 This value is returned to your website. An additional field for you to pass and receive information from eWAY.
ewayOption2 This value is returned to your website. An additional field for you to pass and receive information from eWAY.
ewayOption3 This value is returned to your website. An additional field for you to pass and receive information from eWAY.
ewayTrxnStatus This value is returned to your website. For a successful transaction "True" is passed and for a failed transaction "False" is passed. This allows you to make your own logging on your website for transaction status.
ewayAuthCode If the transaction is successful, this is the bank authorisation number. This is also sent in the email receipt.
eWAYReturnAmount Can be used a check that the transaction is processed for the same amount as you request from your website.