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 Mobile Phone Prepaid transaction, this is only for OPI-DE terminals.
The following code snippet demonstrates how you can do a Mobile Phone Prepaid transaction:
TerminalCommandRequest terminalCommandRequests = TerminalCommandRequest
.builder()
.totalAmount(Money.EUR(9.99)) // Optional for MobilePhonePrepaid, terminal will ask amount when not send. terminal will also ask amount when wrong amount is send
.prepaidCard("41") // Optional for MobilePhonePrepaid
.serialNumber("ABC1234567890") // Optional for MobilePhonePrepaid, necessary for ITunes
.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, terminalDelegate, terminalCommandRequest, Agent.MOBILE_PHONE_PREPAID);