Click or drag to resize
Client Class
CONFIDENTIAL - FOR ASTON CLUB PARTNERS ONLY

[This is preliminary documentation and is subject to change.]

API client client.
Inheritance Hierarchy
SystemObject
  AstonClub.IntegrationClient

Namespace: AstonClub.Integration
Assembly: AstonClub.Integration.Client (in AstonClub.Integration.Client.dll) Version: 4.0.1.0
Syntax
public class Client

The Client type exposes the following members.

Constructors
  NameDescription
Public methodClient(IBaseSettings)
Initializes a new instance of the Client class
Public methodClient(IBaseSettings, ILogger)
Initializes a new instance of the Client class
Top
Methods
  NameDescription
Public methodCancelTransaction
Cancels a transaction that has already been started.
Public methodChargeCustomer
Initiates a charge for a customer.
Public methodGetCustomers
Gets the available customers customers.
Public methodGetReport
Gets transaction summarys for all terminals (stations) for the merchant.
Public methodGetTerminalReport
Gets a transactoin summary for a single terminal (station).
Public methodGetTransaction
Gets the current details for an existing transaction.
Public methodPing
Pings this API to confirm connectivity.
Public methodProcessTransaction
Processes a transation that has already been started.
Public methodRefundTransaction
Refunds a transaction that has already been completed (charged).
Top
Examples
var client = new AstonClub.Integration.Client();

// Get available customers
var customers = client.GetCustomers();

// Charge a customer
var charge = Transaction.CreateTransaction(customer, new Item() {Amount = 10, Name = "Test Item", Quantity = 1, Tax = 0.91});
try
{
    var pendingTransaction = client.ChargeCustomer(charge);
    // check pendingTransaction
    var results = client.ProcessCharge(pendingTransaction);
}
catch (Exception ex)
{
    // The transaction failed!
}
See Also