Package eu.ccvlab.mapi.core.api
Interface PaymentApi
public interface PaymentApi
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidabort(ExternalTerminal terminal, TerminalDelegate terminalDelegate) OPI-NL specific Aborts an ongoing payment.default voidabortOnNewConnection(ExternalTerminal terminal, TerminalDelegate terminalDelegate) Aborts an ongoing payment using a new connection to the terminaldefault voidaccountVerification(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate) default voidfinancialAdvice(ExternalTerminal terminal, FinancialAdviceRequest request, TokenDelegate tokenDelegate) OPI-NL specific unAttended - Card Financial advice.default voidflexo(ExternalTerminal terminal, TerminalDelegate terminalDelegate) default voidpayment(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate) Execute an OPI payment with a terminal.default voidpreAuthorisation(ExternalTerminal terminal, PreAuthorisationRequest request, TokenDelegate tokenDelegate) OPI-NL specific unAttended - Card Pre-authorisation.default voidreservation(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
-
accountVerification
default void accountVerification(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate) -
unsupported
static void unsupported()
-