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

TransactionType Property

Specifies the type of Gift Card transaction to process.

Syntax

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

Possible Values

  15 (ttGiftCardPurchase), 
  16 (ttGiftCardRefund), 
  17 (ttGiftCardAddValue), 
  18 (ttGiftCardDecreaseValue), 
  19 (ttGiftCardCloseCard), 
  20 (ttGiftCardBalanceInquiry), 
  21 (ttPrepaidCardActivation), 
  22 (ttPrepaidCardLoad), 
  23 (ttPrepaidCardPurchase), 
  24 (ttPrepaidCardBalanceInquiry)

Default Value

15


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 type of Gift Card transaction to send. The following table explains the transaction types in detail:

ttGiftCardPurchase (15)This transaction redeems funds on the cards towards the purchase of goods or services.
ttGiftCardRefund (16)This transaction refunds a previous ttGiftCardPurchase transaction.
ttGiftCardAddValue (17)This transaction adds funds to the gift card.
ttGiftCardDecreaseValue (18)This transaction removes funds from the gift card (do not use this for purchases. Use ttGiftCardPurchase instead).
ttGiftCardCloseCard (19)This transaction closes a gift card and removes it from circulation. Any remaining balance on the card will be returned in the ResponseAuthorizedAmount property.
ttGiftCardBalanceInquiry (20)This transaction retrieves the current available balance for the gift card. The balance is returned in the ResponseBalance property.
ttPrepaidCardActivation (21)This transaction activates a card and loads it with funds. The TransactionAmount must match the value indicated on the face of the card.
ttPrepaidCardLoad (22)This transaction loads a prepaid card with funds. Total funds on the card (current balance of the card plus the TransactionAmount) cannot exceed the value printed on the face of the card.
ttPrepaidCardPurchase (23)This transaction is identical to a regular credit card authorization.
ttPrepaidCardBalanceInquiry (24)This transaction retrieves the current available balance for the prepaid card. The balance is returned in the ResponseBalance property.

Data Type

Integer

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