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

DeactivateDevice Method

Deactivates a POS terminal.

Syntax

tsysterminalmgr.deactivateDevice([callback])

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 this 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

DeactivateDevice is used to deactivate a previously activated terminal identified by GenKey.

The following Merchant properties are applicable when calling this method:

The following additional properties are also applicable:

After calling this method check ResponseCode and confirm it is "A3" to indicate the deactivation succeeded. The following Response properties are populated:

DeactivateDevice Example:

TSYSTerminalMgr1.Merchant.BankId = "999999";
TSYSTerminalMgr1.Merchant.CategoryCode = "9999";
TSYSTerminalMgr1.Merchant.Name = "TESTMERCHANT";
TSYSTerminalMgr1.Merchant.Number = "888000002447";
TSYSTerminalMgr1.Merchant.StoreNumber = "5999";
TSYSTerminalMgr1.Merchant.TerminalNumber = "1234";
TSYSTerminalMgr1.Merchant.Zip = "27516";
TSYSTerminalMgr1.Merchant.ServicePhone = "6023337807";
TSYSTerminalMgr1.TransactionNumber = 1234;
TSYSTerminalMgr1.GenKey = "MY_GEN_KEY";
TSYSTerminalMgr1.DeactivateDevice();

if (TSYSTerminalMgr1.Response.Code == "A3") //deactivated
  //...

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