The following methods are available in the direct debit web service.
- CreateCustomer
- CreatePayment
- CreateRecurringPayment
- DeleteCustomer
- DeletePayment
- DeleteRecurringPayment
- UpdateCustomer
- UpdatePayment
- UpdateRecurringPayment
- GetCustomerDirectDebitStatus
- GetPayments
- QueryCustomer
- QueryPayment
- QueryRecurringPayment
To able to call the above web service methods, eWAYCustomerID, username and password needs to be specified in the soap header for each request.
We have provided sample code for ASP.NET (C#)
- C# Code
This ZIP file contains the following files:
- CreateCustomer.aspx/aspx.cs - Shows how to create a customer
- CreatePayment.aspx/aspx.cs - Shows how to create a payment
- CreateRecurringPayment.aspx/aspx.cs - Shows how to create a recurring payment
- QueryCustomer.aspx/aspx.cs - Show how to query a customer
- QueryPayment.aspx/aspx.cs - Shows how to query a payment
- QueryCustomer.aspx/aspx.cs - Shows how to query a customer
- UpdateCustomer.aspx/aspx.cs - Shows how to update the customer details
- UpdatePayment.aspx/aspx.cs - Shows how to update the payment details
- UpdateRecurringPayment.aspx/aspx.cs - Shows how to update the recurring payment
- DeleteCustomer.aspx/aspx.cs - Shows how to delete a customer
- DeletePayment.aspx/aspx.cs - Shows how to delete a payment
- DeleteRecurringPayment.aspx/aspx.cs - Shows how to delete a recurring payment
- GetCustomerDirectDebitStatus.aspx/aspx.cs - Shows how to get the direct debit status for a customer
- GetPayments.aspx/aspx.cs - Shows how to get a list of payments for a customer
- Readme.txt - Explains what needs to be done to run the sample code
- web.config - Need to change the ewaycustomerid,username and password
For more information on using the web service, please read the specifications
»
Download the C# source code (Microsoft Visual Studio 2005)
You can build and test the Direct Debit solution before joining eWAY.
To test your solution with eWAY, all you need to do is pass the
required test-account information. This test facility will validate all inputs but will not save
any data and only return dummy data.
IMPORTANT!
Please make sure you use the following values when testing:
- The test gateway URL is https://www.eway.com.au/gateway/directdebit/test/directdebit.asmx
- The test eWayCustomerID is 87654321 - this is the only ID that will work on the test gateway.
- The test username is test@eway.com.au - this is the only username that will work on the test gateway.
- The test password is test123 - this is the only password that will work on the test gateway.
|