Package eu.ccvlab.mapi.core.api
Interface PaymentApi
public interface PaymentApi
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
abort
(ExternalTerminal terminal, TerminalDelegate terminalDelegate) OPI-NL specific Aborts an ongoing payment.default void
abortOnNewConnection
(ExternalTerminal terminal, TerminalDelegate terminalDelegate) Aborts an ongoing payment using a new connection to the terminaldefault void
financialAdvice
(ExternalTerminal terminal, FinancialAdviceRequest request, TokenDelegate tokenDelegate) OPI-NL specific unAttended - Card Financial advice.default void
flexo
(ExternalTerminal terminal, TerminalDelegate terminalDelegate) default void
payment
(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate) Execute an OPI payment with a terminal.default void
preAuthorisation
(ExternalTerminal terminal, PreAuthorisationRequest request, TokenDelegate tokenDelegate) OPI-NL specific unAttended - Card Pre-authorisation.default void
reservation
(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate) OPI-NL specific Execute an OPI-NL reservation.static void
-
Method Details
-
payment
Execute an OPI payment with a terminal. All interaction from the terminal out will be handed to the payment issuer using the PaymentDelegate.- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.payment
- Defines the payment being processed: the amount and currency and the actual operation to perform: Sale, Refund or Reversal.paymentDelegate
- Callback hook towards the caller to inform regarding success/failure, information to display, error message, etc.
-
reservation
default void reservation(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate) OPI-NL specific Execute an OPI-NL reservation. All interaction from the terminal out will be handed to the payment issuer using the PaymentDelegate.- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.payment
- Defines the payment being processed using card read resultpaymentDelegate
- Callback hook towards the caller to inform regarding success/status/failure
-
financialAdvice
default void financialAdvice(ExternalTerminal terminal, FinancialAdviceRequest request, TokenDelegate tokenDelegate) OPI-NL specific unAttended - Card Financial advice.- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.request
- financial advice specific parameterstokenDelegate
- Callback hook towards the caller to inform regarding success/status/failure
-
preAuthorisation
default void preAuthorisation(ExternalTerminal terminal, PreAuthorisationRequest request, TokenDelegate tokenDelegate) OPI-NL specific unAttended - Card Pre-authorisation.- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.request
- the preAuthorisation specific parameterstokenDelegate
- Callback hook towards the caller to inform regarding success/status/failure
-
abortOnNewConnection
Aborts an ongoing payment using a new connection to the terminal- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.terminalDelegate
- Callback hook towards the caller to inform regarding success/failure, information to display, error message, etc.
-
abort
OPI-NL specific Aborts an ongoing payment. The connection is obtained from the ongoing sale transaction.- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.terminalDelegate
- Callback hook towards the caller to inform regarding success/failure, information to display, error message, etc.
-
flexo
-
unsupported
static void unsupported()
-