Direct Payment Integrator V6 - Online Help
Direct Payment Integrator V6
Questions / Feedback?

InteracTransactionType Property

Indicates the type of transaction to authorize.

Syntax

 ptechcanadiandebit.getInteracTransactionType([callback])
 ptechcanadiandebit.setInteracTransactionType( interacTransactionType, [callback])

Possible Values

  27 (ittSale), 
  28 (ittSaleWithCashBack), 
  29 (ittReturn), 
  44 (ittVoidSale), 
  45 (ittVoidReturn), 
  47 (ittReversalAdvice)

Default Value

27


Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getInteracTransactionType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setInteracTransactionType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This property indicates the type of transaction that is to be sent in an Authorize request. The GetRequestDataToMAC method also uses this property when generating the data which must be MAC'ed by the PIN pad device. In addition to the transaction types listed below, this class also allows you to send MAC Reversals, Current Key Requests, and Reversal Advice transactions using the MACReversal, RequestCurrentKeys, and ReversalAdvice methods, respectively. Allowable transactions types include:

ittSale (27)A regular sale transaction.
ittSaleWithCashBack (28)A sale transaction with DebitCashBack returned to the customer.
ittReturn (29)Interac only allows returns to offset a purchase; returns by themselves are not allowed.
ittVoidSale (44)Voids a previous ittSale transaction.
ittVoidReturn (45)Voids a previous ittReturn transaction.
ittReversalAdvice (47)This is only used for generating GetRequestDataToMAC. Calling Authorize with this InteracTransactionType will result in an error. Please see ReversalAdvice for more information.

Data Type

Integer

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 6.0.6240.0