Integrate our products into your software. Let's make payment happen together!
Look at all the possibilitiesss
It is possible to request additional transaction information while performing a transaction. When requested the terminal will return extra information on why a transaction was declined.
Only for OPI-NL terminals
ExternalTerminal externalTerminal = ExternalTerminal.builder()
.ipAddress(ipAddress)
.port(terminalPort)
.compatibilityPort(compatibilityPort)
.socketMode(socketMode)
.terminalType(terminalType)
.languageCode(LanguageCode.EN)
**.requestTransactionInformation(true)**
.build();
Money money = new Money(new BigDecimal("0.05"), Currency.getInstance("EUR"));
Payment payment = Payment
.builder()
.type(Payment.Type.SALE)
.amount(money)
.build();
PaymentApi paymentService = new PaymentService();
PaymentDelegate paymentDelegate = new PaymentDelegate() {
...
@Override
public void onPaymentSuccess(PaymentResult result) {
//TransactionDeclineInformation contains the additional transaction information
result.transactionDeclineInformation();
}
...
};
paymentService.payment(terminal, payment, paymentDelegate);