Package eu.ccvlab.mapi.core.api
Interface TokenApi
public interface TokenApi
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
abort
(boolean isSilent, ExternalTerminal terminal, TokenDelegate delegate) Currently only supported for OPI-NL Aborts an ongoing token request.default void
abortOnNewConnection
(boolean isSilent, ExternalTerminal terminal, TokenDelegate delegate) Currently only supported for OPI-NL Aborts an ongoing token request.default void
token
(ExternalTerminal externalTerminal, TokenPurpose tokenPurpose, TokenDelegate delegate) Deprecated.default void
token
(ExternalTerminal externalTerminal, TokenRequest tokenRequest, TokenDelegate delegate) static void
default void
validateCard
(ExternalTerminal terminal, TokenDelegate delegate) Currently only supported for OPI-NL Is the card valid
-
Method Details
-
token
@Deprecated default void token(ExternalTerminal externalTerminal, TokenRequest tokenRequest, TokenDelegate delegate) Currently only supported for OPI-NL Fetch a new token- Parameters:
externalTerminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.tokenRequest
- the token request containing the purpose (Tracking, Web, Transaction) and amountdelegate
- Callback hook towards the caller to inform regarding success/status/failure
-
token
@Deprecated default void token(ExternalTerminal externalTerminal, TokenPurpose tokenPurpose, TokenDelegate delegate) Currently only supported for OPI-NL Fetch a new token- Parameters:
externalTerminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.tokenPurpose
- the token purpose (Tracking, Web, Transaction)delegate
- Callback hook towards the caller to inform regarding success/status/failure
-
abort
Currently only supported for OPI-NL Aborts an ongoing token request.- Parameters:
isSilent
- the silent abort prevents that the "Aborted" customer display message isn't shown after performing an abort.terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.delegate
- Callback hook towards the caller to inform regarding success/status/failure
-
abortOnNewConnection
default void abortOnNewConnection(boolean isSilent, ExternalTerminal terminal, TokenDelegate delegate) Currently only supported for OPI-NL Aborts an ongoing token request. The abort will be sent using a new connection.- Parameters:
isSilent
- the silent abort prevents that the "Aborted" customer display message isn't shown after performing an abort.terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.delegate
- Callback hook towards the caller to inform regarding success/status/failure
-
validateCard
Currently only supported for OPI-NL Is the card valid- Parameters:
terminal
- Connection information to reach the terminal, containing IP address, ports, terminalType with opi-language and socket mode.delegate
- Callback hook towards the caller to inform regarding success/status/failure
-
unsupported
static void unsupported()
-
TerminalApi.cardDetection(ExternalTerminal, CardDetectionRequest, TerminalDelegate)