Interface PaymentApi


public interface PaymentApi
  • Method Details

    • payment

      default void payment(ExternalTerminal terminal, Payment payment, PaymentDelegate paymentDelegate)
      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 result
      paymentDelegate - 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 parameters
      tokenDelegate - 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 parameters
      tokenDelegate - Callback hook towards the caller to inform regarding success/status/failure
    • abortOnNewConnection

      default void abortOnNewConnection(ExternalTerminal terminal, TerminalDelegate terminalDelegate)
      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

      default void abort(ExternalTerminal terminal, TerminalDelegate terminalDelegate)
      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

      default void flexo(ExternalTerminal terminal, TerminalDelegate terminalDelegate)
    • unsupported

      static void unsupported()