Class TransactionResponse
The TransactionResponse class encapsulates the result of a purchase, refund or cash advance request
Inherited Members
Namespace: Westpay.Epas
Assembly: EpasClientLibrary.dll
Syntax
public class TransactionResponse : SimpleResponse
Fields
View SourceApproved
If this is true, then the transaction was approved. Otherwise, the ErrorCondition, and AdditionalInformation properties will give more detail on why the transaction was not approved.
Declaration
public bool Approved
Field Value
Type | Description |
---|---|
System.Boolean |
FinalAmount
The total amount that was used in the transaction. Note that for a purchase this may be more than the original requested amount due to charges or tipping that were added during the transaction.
Declaration
public decimal FinalAmount
Field Value
Type | Description |
---|---|
System.Decimal |
Remarks
The transaction amount may also be affected by DCC, if it was applied during the transaction, see DCC.
The breakdown of the final transaction amount is given in the receipt data, see ReceiptData.TransactionData.
TransactionReference
The transaction reference is assigned by the terminal. It identifies the transaction and is required for a reversal, as well as for any post-transaction checks or queries that might arise.
Declaration
public string TransactionReference
Field Value
Type | Description |
---|---|
System.String |
Methods
View SourceToString()
String representation for debugging
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Summary of the response |