Interface MiddlewarePaymentService


  • public interface MiddlewarePaymentService
    • Method Detail

      • initiatePayment

        SCAPaymentResponseTO initiatePayment​(ScaInfoTO scaInfoTO,
                                             PaymentTO payment)
        PROC:01 Initiates a payment. Called by the channel layer.

        This call sets the status RCVD

        Parameters:
        scaInfoTO - : SCA information
        payment - : the payment object
        Returns:
        : the sca response object.
      • executePayment

        SCAPaymentResponseTO executePayment​(ScaInfoTO scaInfoTO,
                                            String paymentId)
        Executes a payment
        Parameters:
        scaInfoTO - : SCA information
        paymentId - : payment identifier
        Returns:
        : the sca response object.
      • authorizePayment

        SCAPaymentResponseTO authorizePayment​(ScaInfoTO scaInfoTO,
                                              String paymentId)
        PROC: 02c

        This is called when the user enters the received code.

        Parameters:
        scaInfoTO - : SCA information
        paymentId - : the payment id
        Returns:
        : auth response.
      • getPaymentStatusById

        TransactionStatusTO getPaymentStatusById​(String paymentId)
        PROC: 04

        Read the status of a payment. Can be called repetitively after initiation of a payment.

        Parameters:
        paymentId - : the payment id
        Returns:
        : the transaction status
      • getPaymentById

        PaymentTO getPaymentById​(String paymentId)
        Reads and return a payment.
        Parameters:
        paymentId - : the payment id
        Returns:
        the payment
      • initiatePaymentCancellation

        SCAPaymentResponseTO initiatePaymentCancellation​(ScaInfoTO scaInfoTO,
                                                         String paymentId)
        Checks the possibility of payment cancellation
        Parameters:
        scaInfoTO - : SCA information
        paymentId - : the payment id
        Returns:
        : the auth response object.