如何正确添加第二个pinpad到ChipDNA服务器配置文件?

时间:2018-05-21 20:14:53

标签: configuration credit-card chip-dna-server

我已经完全设置并运行了ChipDNA Server,它能够与我在同一网络的另一台计算机上的虚拟PinPad进行通信。以下是正在运行的示例配置文件:

<?xml version="1.0" encoding="utf-8"?><ChipDnaServer version="1.0.0">
<MachineName>localhost</MachineName>
<ApplicationIdentifier>CBXTEST</ApplicationIdentifier>
<Socket>192.168.1.164:1869</Socket>
<Terminals>
    <Terminal>
        <TerminalId>99961609</TerminalId>
        <TransactionKey>0gmKTUTZdwQDT5AV</TransactionKey>
        <PaymentDevices>
            <PaymentDevice>        
                <Model>Creditcall-Virtual-Attended</Model>
                <Id>29252553</Id>
                <Protocol>TCPIP</Protocol>
                <Port>1870</Port>
                <Address>192.168.1.250</Address>
                <Baudrate>9600</Baudrate>
                <Parity>none</Parity>
                <Stopbits>1</Stopbits>
                <Databits>8</Databits>
                <StandbyMessage>Welcome to CBX Jose!</StandbyMessage>
            </PaymentDevice>
        </PaymentDevices>
    </Terminal>
</Terminals>
<Tms>
    <Servers>
        <Server>
            <Url>https://testtms.cardeasexml.com</Url>
            <Timeout>45000</Timeout>
        </Server>
    </Servers>
</Tms>

现在,我尝试添加另一个pinpad。但是我收到错误代码&#34; DuplicatePaymentDevice&#34;:

<?xml version="1.0" encoding="utf-8"?><ChipDnaServer version="1.0.0">
<MachineName>localhost</MachineName>
<ApplicationIdentifier>CBXTEST</ApplicationIdentifier>
<Socket>192.168.1.164:1869</Socket>
<Terminals>
    <Terminal>
        <TerminalId>99961609</TerminalId>
        <TransactionKey>0gmKTUTZdwQDT5AV</TransactionKey>
        <PaymentDevices>
            <PaymentDevice>        
                <Model>Creditcall-Virtual-Attended</Model>
                <Id>29252553</Id>
                <Protocol>TCPIP</Protocol>
                <Port>1870</Port>
                <Address>192.168.1.250</Address>
                <Baudrate>9600</Baudrate>
                <Parity>none</Parity>
                <Stopbits>1</Stopbits>
                <Databits>8</Databits>
                <StandbyMessage>Welcome to CBX Jose!</StandbyMessage>
            </PaymentDevice>
            <PaymentDevice>        
                <Model>Creditcall-Virtual-Attended</Model>
                <Id>29252555</Id>
                <Protocol>TCPIP</Protocol>
                <Port>1870</Port>
                <Address>192.168.1.267</Address>
                <Baudrate>9600</Baudrate>
                <Parity>none</Parity>
                <Stopbits>1</Stopbits>
                <Databits>8</Databits>
                <StandbyMessage>Welcome to CBX Jose!</StandbyMessage>
            </PaymentDevice>
        </PaymentDevices>
    </Terminal>
</Terminals>
<Tms>
    <Servers>
        <Server>
            <Url>https://testtms.cardeasexml.com</Url>
            <Timeout>45000</Timeout>
        </Server>
    </Servers>
</Tms>

我查看了很多CreditCall文档,并且没有“多个设备”的例子,他们只是说“ChipDNA服务器能够控制多个设备&#39;”。正如您所看到的ID与前一个ID以及IPAddress不同,但我仍然收到错误。有什么建议吗?

1 个答案:

答案 0 :(得分:0)

目前,包含ChipDNA Server的CreditCall SDK在StackOverFlow上并不常用。不过,我已经与CreditCall支持人员进行了交谈,得到了我的答案,以防将来有人需要这些信息:

ChipDNA服务器上的每个独立PinPad都需要自己的TERMINAL ID才能执行单独的事务处理。当我问这个问题时,我们只分配了一个终端ID,因此我的.config文件将无法工作。然后,CreditCall为我们设置了两个额外的终端,我们只需将每个终端添加到配置中,如下所示:

<?xml version="1.0" encoding="utf-8"?><ChipDnaServer version="1.0.0">
<MachineName>localhost</MachineName>
<ApplicationIdentifier>CBXTEST</ApplicationIdentifier>
<Socket>192.168.1.164:1869</Socket>
<Terminals>
    <Terminal>
        <TerminalId>****1649</TerminalId>
        <TransactionKey>paTKZJ5kTtEArt3X</TransactionKey>
        <PaymentDevices>
            <PaymentDevice>        
                <Model>Creditcall-Virtual-Attended</Model>
                <Id>29252553</Id>
                <Protocol>TCPIP</Protocol>
                <Port>1870</Port>
                <Address>192.168.1.167</Address>
                <!--<Baudrate>9600</Baudrate>
                <Parity>none</Parity>
                <Stopbits>1</Stopbits>
                <Databits>8</Databits>-->
                <StandbyMessage>Welcome to CBX Alfonso!</StandbyMessage>
                <DeviceActive>true</DeviceActive>
            </PaymentDevice>
        </PaymentDevices>
    </Terminal>
    <Terminal>
        <TerminalId>****1648</TerminalId>
        <TransactionKey>muZAAAAARvtn33DXk</TransactionKey>
        <PaymentDevices>
            <PaymentDevice>        
                <Model>Creditcall-Virtual-Attended</Model>
                <Id>29252555</Id>
                <Protocol>TCPIP</Protocol>
                <Port>1870</Port>
                <Address>192.168.1.164</Address>
                <!--<Baudrate>9600</Baudrate>
                <Parity>none</Parity>
                <Stopbits>1</Stopbits>
                <Databits>8</Databits>-->
                <StandbyMessage>Welcome to CBX ServIOT!</StandbyMessage>
                <DeviceActive>true</DeviceActive>
            </PaymentDevice>
        </PaymentDevices>
    </Terminal>
    <Terminal>
        <TerminalId>****1609</TerminalId>
        <TransactionKey>0gmAAAAAdwQDT5AV</TransactionKey>
        <PaymentDevices>
            <PaymentDevice>        
                <Model>Creditcall-Virtual-Attended</Model>
                <Id>29252554</Id>
                <Protocol>TCPIP</Protocol>
                <Port>1870</Port>
                <Address>192.168.1.250</Address>
                <!--<Baudrate>9600</Baudrate>
                <Parity>none</Parity>
                <Stopbits>1</Stopbits>
                <Databits>8</Databits>-->
                <StandbyMessage>Welcome to CBX Jose!</StandbyMessage>
                <DeviceActive>true</DeviceActive>
            </PaymentDevice>
        </PaymentDevices>
    </Terminal>
</Terminals>
<Tms>
    <Servers>
        <Server>
            <Url>https://testtms.cardeasexml.com</Url>
            <Timeout>45000</Timeout>
        </Server>
    </Servers>
</Tms>

此配置包含所有3个pinpads,位于同一网络中的不同计算机上,以与ChipDNA Server进行通信。