We have provided sample code for ASP.NET (C#) language.
To refund a transaction:
- Send the XML document via HTTPS, using SSL.
- Parse the XML document returned
from eWAY.
This ZIP file contains the following files:
- Default.aspx - An example of a form to send
to the eWAY gateway. Be sure to include a valid eWAYCustomerID when you go live.
This ID will be issued to you once you've joined eWAY.
- Default.aspx.cs - C# Server-side code for the
Default.aspx page.
- GatewayConnector.cs - This page connects to the eWAY gateway, sends an XML
request and receives the XML response.
- GatewayRequest.cs - This takes the fields from the WebForm1.aspx page and
converts it to an XML string to pass to the GatewayConnector.cs page.
- GatewayResponse.cs - This passes the eWAY gateway response back to the WebForm1.aspx
page.
- Web.config - This holds the configuration settings for the live and test
gateway URLs, as well as your eWAY Customer ID and the ID used for testing.
For more information on passing XML, please see the Field specifications tab.