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

TransactionType Property

Specifies the original transaction type that you wish to reverse.

Syntax

 tsyshcreversal.getTransactionType([callback])
 tsyshcreversal.setTransactionType( transactionType, [callback])

Possible Values

  0 (ttCreditAuthorizationReversal), 
  1 (ttDebitAuthorizationReversal), 
  2 (ttDebitCreditReversal), 
  3 (ttGiftCardAuthorizationReversal)

Default Value

0


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 getTransactionType([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 setTransactionType([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 original transaction type that you want to reverse. The following table explains the transaction types in detail:

ttCreditAuthorizationReversal (0)This transaction reverses a previous credit card purchase transaction (also known as Online Authorization Reversal). This type should be used when reversing a TSYSHCRetail or TSYSHCECommerce authorization transaction.
ttDebitAuthorizationReversal (1)This transaction reverses a previous debit card purchase transaction. This type should be used when reversing a TSYSHCDebit authorization transaction.
ttDebitCreditReversal (2)This transaction reverses a previous debit card refund transaction. This type should be used when reversing a TSYSHCDebit credit transaction.
ttGiftCardAuthorizationReversal (3)This transaction reverses a previous gift card purchase transaction. This type should be used when reversing a TSYSHCGIFTCARD authorization transaction.

Data Type

Integer

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