Integrate our products into your software. Let's make payment happen together!
Look at all the possibilitiesThis guide will show you how to perform a Taxfree transaction, this is only for OPI-DE terminals.
The following code snippet demonstrates how you can do a Taxfree transaction:
TerminalCommandRequest terminalCommandRequests = TerminalCommandRequest
.builder()
.totalAmount(Money.EUR(9.99))
.reducedTaxAmount(Money.EUR(5.55))
.build();
OpiDEApi opiDeService = new OpiDEService();
TerminalDelegate terminalDelegate = new TerminalDelegate() {
...
@Override
public void onPaymentAdministrationSuccess(PaymentAdministrationResult result) {
//contains code which handles a successful reprint ticket
}
@Override
public void onError(Error error) {
//contains code which handles a failed reprint ticket
}
@Override
public void printMerchantReceiptAndSignature(PaymentReceipt receipt) {
//contains code which handles receiving a merchant receipt
}
@Override
public void inputCommand(List lines, String command, int length, InputCommandCallback inputCommandCallback) {
//contains code which handles an incoming input command
}
...
};
opiDeService.terminalCommand(externalTerminal, paymentDelegate, terminalCommandRequest, Agent.TAXFREE);