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

CardPresent Property

Indicates whether the current transaction is a card present transaction.

Syntax

 tsysretail.getCardPresent([callback])
 tsysretail.setCardPresent( cardPresent, [callback])

Default Value

TRUE


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 getCardPresent([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 setCardPresent([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

By default, this class handles only retail card-present transactions. However, there are times at which a retail merchant may need to make a card-not-present transaction. For instance, hotel reservations, pre-orders, and the like. By setting this property to False a merchant may submit a card-not-present transaction. However, merchants that deal primarily in card-not-present transactions (either over the Internet or over the telephone) should use the TSYSECommerce class instead.

Data Type

Boolean

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