bool Confirm(string, string, int, int, string, string, string, string)

Finalizes an unconfirmed PreAuth transaction and returns the result via the OnKioEMVTransactionCompleted callback.

Security

Trust Level Required: Full Trust

Parameters

Name Description
transactionRefId string
The corresponding payment transaction ReferenceID from the OnKioEMVTransactionCompleted callback.
deviceName (Optional) string
The name of the device. If not supplied, the first matching configured device of this type will be used.
paymentAmount (Optional) int
The amount of the transaction to confirm in cents, or whatever the minor currency unit is for your device/configuration. (Shift4 only)
taxAmount (Optional) int
The amount of tax to confirm in cents, or whatever the minor currency unit is for your device/configuration. (Shift4 only)
cardToken (Optional) string
Card token returned by the preceeding Authorization request. (Shift4 only)
authCode (Optional) string
Auth code returned by the preceeding Authorization request.
AcqRefData (Optional) string
The acquirer reference data, sometimes needed for running a refund operation.
ProcessData (Optional) string
The processor data, sometimes needed for running a refund operation.

Return

True if the command was queued for processing, false otherwise.

Remarks

After successfully running a PreAuth transaction, the transaction must then be confirmed or voided. This call concludes the two-step PreAuth transaction. This transaction type is not supported by NETePay.

Examples


if (!KioEMVTransaction.Payment('425'))
   alert('Failed to call Payment!');

var TransTypes = {
    None: 0,
    SetParameters: 1,
    Payment: 2,  // PreAuth
    Confirm: 3,  // PreAuth Capture
    Terminate: 4,
    VoidTrans: 5,
    Refund: 6,
    SetIdleMsg: 7,
    Sale: 8,
    VoidSale: 9,
    Reset: 10,
    RequestTMSUpdate: 11,
}

var ResultTypes = {
    Unknown: 0,
    Approved: 1,
    Declined: 2,
    Error: 3,
}

                // callback fired when operation processed
function OnKioEMVTransactionCompleted(result) {
   alert('Operation returned: ' + lastTransResult.Result);
   if (lastTransResult.Result == ResultTypes.Approved) {
      if ((lastTransResult.TransType == TransTypes.Payment) {
         KioEMVTransaction.Confirm(lastTransResult.ReferenceID);
                    }
                  }
}

Requirements

KioWare for Windows version 8.7 or greater.