frank

Options to Exclude Null Devices From Being Installed

Discussion created by frank on Jun 28, 2019

How can I (outside of a homegrown "post-installation script") tell the triPOS Direct installer to not install the dummy lanes(ESPECIALLY the "Virtual IP Lane", which litters the logs with connection errors, and has caused issues in the past with those errors "leaking" into other lanes' transaction responses)?

 

Can I get some thumbs-up's on this? 

 

 

 

For anyone interested, a (very ) simple PowerShell snippet to remove the Null device lanes:

#!/bin/powershell
# Get the full path and file name of the tripos.config file
$programFilesX86Folder = [System.Environment]::GetFolderPath("ProgramFilesX86")
$triPOSFolder = [System.IO.Path]::Combine($programFilesX86Folder, "Vantiv\triPOS Service")
$configFile = [IO.Path]::Combine($triPOSFolder, 'tripos.config')

# Load an xml document of the tripos.config
[xml]$config = get-content $configFile
# BACKUPS BACKUPS BACKUPS!
$backupConfigFile = "$($configFile).$([DateTime]::UtcNow.ToString("yyyy-MM-dd_HHmmss")).bak"
$config.Save($backupConfigFile)

# Define the NULL driver types
$nullDrivers = ( `
"Null", `
"DebitNull", `
"GiftNull", `
"NullPinPadDoesNotSupportSignature", `
"NullPinPadReturnsContactlessMsd", `
"NullPinPadReturnsEncryptedContactlessMsd", `
"Virtual" `
)

# Get the collection of <lanes>, so that we can remove items from it
$lanes = $config.tripos.lanes

# Go through Serial device lanes and whack those having NULL PIN pad drivers
foreach ($serialLane in $lanes.serialLane) {
$driver = $serialLane.pinpad.driver
if ($driver -in $nullDrivers) {
$lanes.RemoveChild($serialLane) | Out-Null
}
}
# Go through IP device lanes and whack those having NULL PIN pad drivers
foreach ($ipLane in $lanes.ipLane) {
$driver = $ipLane.pinpad.driver
if ($driver -in $nullDrivers) {
$lanes.RemoveChild($serialLane) | Out-Null
}
}

# Save the config
$config.Save($configFile)

# Restart the triPOS Service
Restart-Service -Name TriPosService

Outcomes