Connecting Transfer to an outside application

You can process the transaction for the current invoice through the OLE interface.

From the API, you can get the transaction description which contains one or more transaction fields. Each transaction field has a value.

Use these methods to get a field from the TransactionDefinition object:

GetFirstField

GetNextField

GetFieldByNo

GetFieldByName

The field definition contains these methods for each variable:

GetFormat

GetLength

GetValue

The transaction description is available through the InvoiceTransfer event. If the return value from InvoiceTransfer event is EV_OK_ABORT, the current transaction will not be written to the transaction output file.

Two classes are created by this event:

  • TransactionDefinition
  • TransactionFieldDefinition