public class ZVTClient extends ECRBase
ZVTResponse
class which parses the response and creates a ZVTResponse
object. In the ZVT environment
it is not possible to generate own receipts by calling Response.GenerateReceipt()
. It will return the receipt delivered by the payment terminal (for
further information see logon()
). at.hobex.pos.ecr.zvt
Constructor and Description |
---|
ZVTClient()
Constructor for an ZVTClient-Object object.
|
ZVTClient(java.lang.String comPort)
Constructor to create an ZVTClient-Object which communicates via serial communication with default values - baud rate (=9600), stop bit (=2), Timeouts (t3=5000ms, t4=180000ms)
and Config-Byte BE
|
ZVTClient(java.lang.String host,
int port)
Constructor to create an ZVTClient-Object which communicates via TCP/IP with default values - timeouts (t3=5000ms, t4=180000ms), Config-Byte BE and force registration false
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits)
Constructor to create an ZVTClient-Object which communicates via serial communication with default values - timeouts (t3=5000ms, t4=180000ms), Config-Byte BE and force
registration false
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4)
Constructor to create an ZVTClient-Object which communicates via TCP/IP with default Config-Byte BE and force registration false
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4,
byte configByte)
Constructor to create an ZVTClient-Object which communicates via TCP/IP with default value force registration false
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4,
byte configByte,
boolean forceRegistration)
Constructor to create an ZVTClient-Object which communicates via TCP/IP
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4,
byte configByte,
boolean forceRegistration,
int delayBetweenCommands)
Constructor to create an ZVTClient-Object which communicates via TCP/IP
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4)
Constructor to create an ZVTClient-Object which communicates via serial communication with default Config-Byte BE and force registration false
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4,
byte configByte)
Constructor to create an ZVTClient-Object which communicates via serial communication with default Config-Byte BE and force registration false
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4,
byte configByte,
boolean forceRegistration)
Constructor to create an ZVTClient-Object which communicates via serial communication
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4,
byte configByte,
boolean forceRegistration,
int delayBetweenCommands)
Constructor to create an ZVTClient-Object which communicates via serial communication
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4,
java.lang.String configByte)
Constructor to create an ZVTClient-Object which communicates via serial communication with default value force registration false
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4,
java.lang.String configByte,
boolean forceRegistration)
Constructor to create an ZVTClient-Object which communicates via serial communication
|
ZVTClient(java.lang.String comPort,
int baudRate,
int stopBits,
int timeout3,
int timeout4,
java.lang.String configByte,
boolean forceRegistration,
int delayBetweenCommands)
Constructor to create an ZVTClient-Object which communicates via serial communication
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4,
java.lang.String configByte)
Constructor to create an ZVTClient-Object which communicates via TCP/IP with default value force registration false
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4,
java.lang.String configByte,
boolean forceRegistration)
Constructor to create an ZVTClient-Object which communicates via TCP/IP
|
ZVTClient(java.lang.String host,
int port,
int timeout3,
int timeout4,
java.lang.String configByte,
boolean forceRegistration,
int delayBetweenCommands)
Constructor to create an ZVTClient-Object which communicates via TCP/IP
|
Modifier and Type | Method and Description |
---|---|
Response |
abort()
Aborts an already started command on the payment terminal.
|
void |
addListener(IntermediateStatusInformationListener listener)
If in the
logon() requests the intermediate status information it is necessary to add a listener to receive the status information. |
ZVTResponse |
batchTotals(int client)
Command to force the terminal to send an overview about the stored turnover sum (
ZVTResponse.getAmount() holds the turnover sum). |
Response |
cancel(double amount,
java.lang.String receiptNo)
Starts a cancel/refund of the last transaction if it is available.
|
Response |
cancel(double amount,
java.lang.String receiptNo,
int client)
Starts a cancel/refund of the last transaction if it is available.
|
Response |
cancel(java.lang.String currency,
double amount,
java.lang.String receiptNo)
Starts a cancel/refund of the last transaction if it is available.
|
Response |
cancel(java.lang.String currency,
double amount,
java.lang.String receiptNo,
int client)
Starts a cancel/refund of the last transaction if it is available.
|
ZVTResponse |
cancel(java.lang.String currency,
double amount,
java.lang.String txId,
java.lang.String receiptNo,
int client)
Starts a cancel/refund of the last transaction if it is available.
|
ZVTResponse |
capture(java.lang.String currency,
double amount,
java.lang.String originalTxId,
int client)
This command executes capture/booking of the total amount for a
Pre-Authorization/Reservation . |
ZVTResponse |
capture(java.lang.String currency,
double amount,
java.lang.String txId,
java.lang.String originalTxId,
int client)
This command executes capture/booking of the total amount for a
Pre-Authorization/Reservation . |
Response |
CheckAgeVerification(double amount)
Explanation
|
ZVTResponse |
closeBatch(int client)
The payment terminal transfer the stored turnover to the host and clears the turnover on the payment terminal (
ZVTResponse.getAmount() holds the turnover sum). |
void |
closeCommunication()
Deprecated.
|
ZVTResponse |
diagnosis()
Forces the terminal to send a diagnostic message to the host.
|
Response |
logoff()
Resets the terminal configuration from the
logon() command to default. |
Response |
logon()
Init the communication to the payment terminal.
|
void |
openCommunication()
Deprecated.
|
Response |
pointsCollect(java.lang.String txID,
java.lang.String currency,
double bonusPointsEquivalentAmount,
java.lang.String reference,
int client)
Method to transform the given amount into the equivalent bonus points.
|
ZVTResponse |
preauth(java.lang.String txId,
java.lang.String currency,
double amount,
java.lang.String reference,
int client)
Starts a Pre-Authorization/Reservation.
|
ZVTResponse |
preauthCancel(java.lang.String currency,
double amount,
java.lang.String originalTxId,
int client)
This command cancels a capture of the
Pre-Authorization/Reservation |
ZVTResponse |
preauthCancel(java.lang.String currency,
double amount,
java.lang.String txId,
java.lang.String originalTxId,
int client)
This command cancels a capture of the
Pre-Authorization/Reservation |
ZVTResponse |
purchase(double amount,
AgeTags currentAgeCheck)
Triggers a purchase/authorization transaction with cashback
|
ZVTResponse |
purchase(double amount,
java.math.BigDecimal cashback)
Triggers a purchase/authorization transaction with cashback
|
ZVTResponse |
purchase(double amount,
int currentAgeCheck)
Triggers a purchase/authorization transaction with cashback
|
ZVTResponse |
purchase(double amount,
int currentAgeCheck,
java.lang.String reference)
Triggers a purchase/authorization transaction with cashback
|
ZVTResponse |
purchase(double amount,
java.lang.String reference,
AgeTags currentAgeCheck)
Triggers a purchase/authorization transaction with cashback
|
ZVTResponse |
purchase(double amount,
java.lang.String reference,
double cashback)
Triggers a purchase/authorization transaction with cashback
|
ZVTResponse |
purchase(java.lang.String txId,
java.lang.String currency,
double amount,
double tip,
java.lang.String reference,
int client,
boolean forceMotoTransaction)
Triggers a purchase/authorization transaction.
|
ZVTResponse |
refund(java.lang.String txId,
java.lang.String originalTxId,
java.lang.String currency,
double amount,
java.lang.String reference,
int client)
Starts a refund transaction.
|
void |
removeListener(IntermediateStatusInformationListener listener)
If you don't want to get further intermediate status information it is possible to remove already attached listener from the notification queue.
|
ZVTResponse |
repeatReceipt()
To get the last receipt from the payment terminal if it is available.
|
ZVTResponse |
status()
Starts an status enquire to request the terminal status.
|
Response |
voucherBalance(java.lang.String txID,
java.lang.String reference,
int client)
Method to get the remaining balance of the loyalty card.For remaining balance see
Response.getBonusPointsEquivalentAmount() |
Response |
voucherLoad(java.lang.String txID,
java.lang.String currency,
double amount,
java.lang.String reference,
int client)
Credit amount to the loyalty card.
|
Response |
voucherPay(java.lang.String txID,
java.lang.String currency,
double amount,
java.lang.String reference,
int client)
Start a transaction with amount to debit from the loyalty card.
|
abort, batchTotals, capture, capture, capture, closeBatch, connectionStatus, getCurrency, getLastTransactionId, getTecsClient, getTransactionDetails, getZVTClient, moto, moto, moto, moto, moto, moto, moto, newTransactionId, openSystemMenu, pointsCollect, preauth, preauth, preauth, preauth, preauthCancel, preauthCancel, preauthCancel, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, purchase, refund, refund, refund, refund, refund, restartPaymentApplication, setLanguage, setSSLSocketFactory, startCTLSCardRead, startCTLSCardRead, stopCTLSCardRead, voucherBalance, voucherLoad, voucherPay
public ZVTClient()
com.host=COMX or 127.0.0.1
com.port=20007 (if TCP/IP else it can be empty)
com.timeout=180000 (timeout 4 in ms, timeout between ACK from terminal and completion of the command))
configByte=BE (set the terminal configuration, registration command is necessary)
forceRegistration=true (forces a registration command while instantiate the ZVTClient)
timeout3=5000 (timeout between command from ECR and ACK from terminal in ms)
baudRate=9600 serial connection baud rate
stopBits=2 serial connection - stop bits
delayBetweenCommands=0 (Forces a delay between two commands (delay in milliseconds!)
ConfigByte
public ZVTClient(java.lang.String comPort)
comPort
- Serial port (COM1...COMX)public ZVTClient(java.lang.String host, int port)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)public ZVTClient(java.lang.String comPort, int baudRate, int stopBits)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets the baud ratestopBits
- Sets the stop bitspublic ZVTClient(java.lang.String host, int port, int timeout3, int timeout4)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)public ZVTClient(java.lang.String host, int port, int timeout3, int timeout4, byte configByte)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)configByte
- Sets Config-ByteConfigByte
public ZVTClient(java.lang.String host, int port, int timeout3, int timeout4, byte configByte, boolean forceRegistration)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)configByte
- Sets Config-ByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outConfigByte
public ZVTClient(java.lang.String host, int port, int timeout3, int timeout4, byte configByte, boolean forceRegistration, int delayBetweenCommands)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)configByte
- Sets Config-ByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outdelayBetweenCommands
- Forces a delay between two commands (delay in milliseconds!)ConfigByte
public ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in mspublic ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4, byte configByte)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in msconfigByte
- Sets Config-ByteConfigByte
public ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4, byte configByte, boolean forceRegistration)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in msconfigByte
- Sets Config-ByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outConfigByte
public ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4, byte configByte, boolean forceRegistration, int delayBetweenCommands)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in msconfigByte
- Sets Config-ByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outdelayBetweenCommands
- Forces a delay between two commands (delay in milliseconds!)ConfigByte
public ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4, java.lang.String configByte)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in msconfigByte
- Sets Config-ByteConfigByte
public ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4, java.lang.String configByte, boolean forceRegistration)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in msconfigByte
- Sets Config-ByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outConfigByte
public ZVTClient(java.lang.String comPort, int baudRate, int stopBits, int timeout3, int timeout4, java.lang.String configByte, boolean forceRegistration, int delayBetweenCommands)
comPort
- Sets serial port (COM1...COMX)baudRate
- Sets baud ratestopBits
- Sets stop bitstimeout3
- Sets timeout 3 in mstimeout4
- Sets timeout 4 in msconfigByte
- Sets Config-ByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outdelayBetweenCommands
- Forces a delay between two commands (delay in milliseconds!)ConfigByte
public ZVTClient(java.lang.String host, int port, int timeout3, int timeout4, java.lang.String configByte)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)configByte
- Sets Config-Byte see ConfigBytepublic ZVTClient(java.lang.String host, int port, int timeout3, int timeout4, java.lang.String configByte, boolean forceRegistration)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)configByte
- Sets Config-Byte see ConfigByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outpublic ZVTClient(java.lang.String host, int port, int timeout3, int timeout4, java.lang.String configByte, boolean forceRegistration, int delayBetweenCommands)
host
- Terminal-IPport
- Terminal Port (default ZVT-Port: 20007)timeout3
- Sets timeout 3 in milliseconds (default 5000ms)timeout4
- Sets timeout 4 in milliseconds (default 180000ms)configByte
- Sets Config-Byte see ConfigByteforceRegistration
- If true the api perform an ECRBase.logon()
before a command to ensure that the expected behavior is carried outdelayBetweenCommands
- Forces a delay between two commands (delay in milliseconds!)public Response abort() throws ECRException
abort
in class ECRBase
Response
class.ECRException
public void addListener(IntermediateStatusInformationListener listener)
logon()
requests the intermediate status information it is necessary to add a listener to receive the status information.listener
- The intermediate status information listener to add in the notification queue.public ZVTResponse batchTotals(int client) throws ECRException
ZVTResponse.getAmount()
holds the turnover sum).batchTotals
in class ECRBase
client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public Response cancel(double amount, java.lang.String receiptNo) throws ECRException, ECRCommunicationException
cancel
in class ECRBase
amount
- Not supported in ZVT ImplementationreceiptNo
- Receipt# of the last transaction Response.getReceiptNo()
Response
class.ECRException
ECRCommunicationException
public Response cancel(double amount, java.lang.String receiptNo, int client) throws ECRException, ECRCommunicationException
cancel
in class ECRBase
amount
- Not supported in ZVT ImplementationreceiptNo
- Receipt# of the last transaction Response.getReceiptNo()
client
- Not supported in ZVT ImplementationResponse
class.ECRException
ECRCommunicationException
public Response cancel(java.lang.String currency, double amount, java.lang.String receiptNo) throws ECRException, ECRCommunicationException
cancel
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Not supported in ZVT ImplementationreceiptNo
- Receipt# of the last transaction Response.getReceiptNo()
Response
class.ECRException
ECRCommunicationException
public Response cancel(java.lang.String currency, double amount, java.lang.String receiptNo, int client) throws ECRException, ECRCommunicationException
cancel
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Not supported in ZVT ImplementationreceiptNo
- Receipt# of the last transaction Response.getReceiptNo()
client
- Client-Id used for multi-merchant-terminals, usually/default 1.Response
class.ECRException
ECRCommunicationException
public ZVTResponse cancel(java.lang.String currency, double amount, java.lang.String txId, java.lang.String receiptNo, int client) throws ECRException
cancel
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Not supported in ZVT ImplementationtxId
- Not supported in ZVT ImplementationreceiptNo
- Receipt# of the last transaction Response.getReceiptNo()
client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public ZVTResponse capture(java.lang.String currency, double amount, java.lang.String originalTxId, int client) throws ECRException
Pre-Authorization/Reservation
. In the ZVT implementation only amount andcapture
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Amount to captureoriginalTxId
- from former preauth to capture the amount from this preauth (if not send, merchant must enter number manually on terminal)client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public ZVTResponse capture(java.lang.String currency, double amount, java.lang.String txId, java.lang.String originalTxId, int client) throws ECRException
Pre-Authorization/Reservation
. In the ZVT implementation only amount andcapture
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Amount to capturetxId
- Not supported in ZVT ImplementationoriginalTxId
- from former preauth to capture the amount from this preauth (if not send, merchant must enter number manually on terminal)client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public Response CheckAgeVerification(double amount)
ConfigByte
public ZVTResponse closeBatch(int client) throws ECRException
ZVTResponse.getAmount()
holds the turnover sum).closeBatch
in class ECRBase
client
- Not supported in ZVT ImplementationZVTResponse
ECRException
@Deprecated public void closeCommunication()
logoff()
instead!closeCommunication
in class ECRBase
public ZVTResponse diagnosis() throws ECRException
diagnosis
in class ECRBase
ZVTResponse
ECRException
public Response logoff()
logon()
command to default.logoff
in class ECRBase
ECRBase.logon()
public Response logon()
ConfigByte
. Also it triggers an extended response from the payment terminal after a purchase to get more detail information about the card
holder verification method (PIN, NFC, signature).logon
in class ECRBase
ConfigByte
@Deprecated public void openCommunication()
logon()
instead!openCommunication
in class ECRBase
logon()
public Response pointsCollect(java.lang.String txID, java.lang.String currency, double bonusPointsEquivalentAmount, java.lang.String reference, int client) throws ECRException
pointsCollect
in class ECRBase
txID
- Not supported in ZVT Implementationcurrency
- Not supported in ZVT ImplementationbonusPointsEquivalentAmount
- Bonus Points equivalent amountreference
- Not supported in ZVT Implementationclient
- Not supported in ZVT ImplementationZVTResponse
ECRException
public ZVTResponse preauth(java.lang.String txId, java.lang.String currency, double amount, java.lang.String reference, int client) throws ECRException
ECRBase.preauth(double)
.preauth
in class ECRBase
txId
- Not supported in ZVT Implementationcurrency
- Not supported in ZVT Implementationamount
- Amount to pre-authorizereference
- Not supported in ZVT Implementationclient
- Not supported in ZVT ImplementationZVTResponse
ECRException
ECRBase.capture(double, String)
,
ECRBase.preauthCancel(double, String)
public ZVTResponse preauthCancel(java.lang.String currency, double amount, java.lang.String originalTxId, int client) throws ECRException
Pre-Authorization/Reservation
preauthCancel
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Amount to canceloriginalTxId
- from former preauth to capture the amount from this preauth (if not send, merchant must enter number manually on terminal)client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public ZVTResponse preauthCancel(java.lang.String currency, double amount, java.lang.String txId, java.lang.String originalTxId, int client) throws ECRException
Pre-Authorization/Reservation
preauthCancel
in class ECRBase
currency
- Not supported in ZVT Implementationamount
- Amount to canceltxId
- Not supported in ZVT ImplementationoriginalTxId
- from former preauth to capture the amount from this preauth (if not send, merchant must enter number manually on terminal)client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public ZVTResponse purchase(double amount, AgeTags currentAgeCheck) throws ECRException
amount
- Amount to purchasecurrentAgeCheck
- Age req. for this purchaseZVTResponse
ECRException
public ZVTResponse purchase(double amount, java.math.BigDecimal cashback) throws ECRException
amount
- Amount to purchasecashback
- Amount to Cashback (money withdraw) important: cashback has to be float variableZVTResponse
ECRException
public ZVTResponse purchase(double amount, int currentAgeCheck) throws ECRException
amount
- Amount to purchasecurrentAgeCheck
- Age req. for this purchaseZVTResponse
ECRException
public ZVTResponse purchase(double amount, int currentAgeCheck, java.lang.String reference) throws ECRException
amount
- Amount to purchasereference
- Sends a reference number to the payment terminal. In the terminal software the optional setting 'reference' must be activated to use the reference number in the
back-office! If it is activated in terminal software the reference is also printed on the receipt. A maximum of 20 alphanumeric characters with the following special characters are allowed for the reference! -_+*#.()/%&!\"$%&\/=?:,;{[]}~<>|currentAgeCheck
- Age req. for this purchaseZVTResponse
ECRException
public ZVTResponse purchase(double amount, java.lang.String reference, AgeTags currentAgeCheck) throws ECRException
amount
- Amount to purchasereference
- Sends a reference number to the payment terminal. In the terminal software the optional setting 'reference' must be activated to use the reference number in the
back-office! If it is activated in terminal software the reference is also printed on the receipt. A maximum of 20 alphanumeric characters with the following special characters are allowed for the reference! -_+*#.()/%&!\"$%&\/=?:,;{[]}~<>|currentAgeCheck
- Age req. for this purchaseZVTResponse
ECRException
public ZVTResponse purchase(double amount, java.lang.String reference, double cashback) throws ECRException
amount
- Amount to purchasereference
- Sends a reference number to the payment terminal. In the terminal software the optional setting 'reference' must be activated to use the reference number in the
back-office! If it is activated in terminal software the reference is also printed on the receipt. A maximum of 20 alphanumeric characters with the following special characters are allowed for the reference! -_+*#.()/%&!\"$%&\/=?:,;{[]}~<>|cashback
- Amount to Cashback (money withdraw)ZVTResponse
ECRException
public ZVTResponse purchase(java.lang.String txId, java.lang.String currency, double amount, double tip, java.lang.String reference, int client, boolean forceMotoTransaction) throws ECRException
ECRBase.purchase(double)
.purchase
in class ECRBase
txId
- Not supported in ZVT Implementationcurrency
- Not supported in ZVT Implementationamount
- Amount to purchase/transaction amount (exclusive TIP)tip
- Not supported in ZVT Implementationreference
- Sends a reference number to the payment terminal. In the terminal software the optional setting reference must be activated to use the reference number in the
back-office! If it is activated in terminal software the reference is also printed on the receipt. A maximum of 20 alphanumeric characters with the following special characters are allowed for the reference! -_+*#.()/%&!\"$%&\/=?:,;{[]}~<>|client
- Not supported in ZVT ImplementationforceMotoTransaction
- not used in ZVT implementationZVTResponse
ECRException
public ZVTResponse refund(java.lang.String txId, java.lang.String originalTxId, java.lang.String currency, double amount, java.lang.String reference, int client) throws ECRException
ECRBase.refund(double)
.refund
in class ECRBase
txId
- Not supported in ZVT ImplementationoriginalTxId
- Not supported in ZVT Implementationcurrency
- Not supported in ZVT Implementationamount
- Amount to refundreference
- Sends a reference number to the payment terminal. In the terminal software the optional setting 'reference' must be activated to use the reference number in the
back-office! If it is activated in terminal software the reference is also printed on the receipt. A maximum of 20 alphanumeric characters with the following special characters are allowed for the reference! -_+*#.()/%&!\"$%&\/=?:,;{[]}~<>|client
- Not supported in ZVT ImplementationZVTResponse
ECRException
public void removeListener(IntermediateStatusInformationListener listener)
listener
- The intermediate status information listener to remove from the notification queue.public ZVTResponse repeatReceipt() throws ECRException
repeatReceipt
in class ECRBase
ZVTResponse
ECRException
public ZVTResponse status() throws ECRException
ZVTResponse.getResponseCode()
, ZVTResponse.getResponseText()
also the current
terminal software version (ZVTResponse.getSWVersion()
).status
in class ECRBase
ZVTResponse
ECRException
public Response voucherBalance(java.lang.String txID, java.lang.String reference, int client) throws ECRException
Response.getBonusPointsEquivalentAmount()
voucherBalance
in class ECRBase
txID
- Not supported in ZVT Implementationreference
- Not supported in ZVT Implementationclient
- Not supported in ZVT ImplementationZVTResponse
ECRException
public Response voucherLoad(java.lang.String txID, java.lang.String currency, double amount, java.lang.String reference, int client) throws ECRException
Response.getBonusPointsEquivalentAmount()
txID
- Not supported in ZVT Implementationcurrency
- Not supported in ZVT Implementationamount
- Amount to credit to the loyalty cardreference
- Not supported in ZVT Implementationclient
- Client-Id used for multi-merchant-terminals, usually/default 1.ZVTResponse
ECRException
public Response voucherPay(java.lang.String txID, java.lang.String currency, double amount, java.lang.String reference, int client) throws ECRException
Response.getBonusPointsEquivalentAmount()
voucherPay
in class ECRBase
txID
- Not supported in ZVT Implementationcurrency
- Not supported in ZVT Implementationamount
- Amount to credit to the loyalty cardreference
- Reference number, usually a matching number for your environment. A maximum of 20 alphanumeric characters with the following special characters are allowed for the reference! -_+*#.()/%&!\"$%&/=?:,;client
- Not supported in ZVT ImplementationZVTResponse
ECRException