public interface MiddlewarePaymentService
<T> SCAPaymentResponseTO initiatePayment(T payment, PaymentTypeTO paymentType) throws AccountNotFoundMiddlewareException, NoAccessMiddlewareException, PaymentWithIdMiddlewareException
This call sets the status RCVD
payment - : the payment objectpaymentType - : the payment typeAccountNotFoundMiddlewareException - : account non existant.NoAccessMiddlewareException - : missing permissionsPaymentWithIdMiddlewareException - : payment with given id exist.SCAPaymentResponseTO authorizePayment(String paymentId, String authorisationId, String authCode) throws SCAOperationNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationExpiredMiddlewareException, SCAOperationUsedOrStolenMiddlewareException, PaymentNotFoundMiddlewareException
This is called when the user enters the received code.
paymentId - : the payment idauthorisationId - : the authorization idauthCode - : the auth code.SCAOperationNotFoundMiddlewareException - : not foundSCAOperationValidationMiddlewareException - : not validSCAOperationExpiredMiddlewareException - : expiredSCAOperationUsedOrStolenMiddlewareException - : maliciousPaymentNotFoundMiddlewareException - : payment not found.TransactionStatusTO getPaymentStatusById(String paymentId) throws PaymentNotFoundMiddlewareException
Read the status of a payment. Can be called repetitively after initiation of a payment.
paymentId - : the payment idPaymentNotFoundMiddlewareException - : payment with id not found.Object getPaymentById(String paymentId) throws PaymentNotFoundMiddlewareException
paymentId - : the payment idPaymentNotFoundMiddlewareExceptionSCAPaymentResponseTO initiatePaymentCancellation(String paymentId) throws PaymentNotFoundMiddlewareException, PaymentProcessingMiddlewareException
paymentId - : the payment idPaymentNotFoundMiddlewareException - : not foundPaymentProcessingMiddlewareException - : processingSCAPaymentResponseTO loadSCAForPaymentData(String paymentId, String authorisationId) throws PaymentNotFoundMiddlewareException, SCAOperationExpiredMiddlewareException
SCAPaymentResponseTO selectSCAMethodForPayment(String paymentId, String authorisationId, String scaMethodId) throws PaymentNotFoundMiddlewareException, SCAMethodNotSupportedMiddleException, UserScaDataNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationNotFoundMiddlewareException
SCAPaymentResponseTO loadSCAForCancelPaymentData(String paymentId, String cancellationId) throws PaymentNotFoundMiddlewareException, SCAOperationExpiredMiddlewareException
SCAPaymentResponseTO selectSCAMethodForCancelPayment(String paymentId, String cancellationId, String scaMethodId) throws PaymentNotFoundMiddlewareException, SCAMethodNotSupportedMiddleException, UserScaDataNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationNotFoundMiddlewareException
SCAPaymentResponseTO authorizeCancelPayment(String paymentId, String cancellationId, String authCode) throws SCAOperationNotFoundMiddlewareException, SCAOperationValidationMiddlewareException, SCAOperationExpiredMiddlewareException, SCAOperationUsedOrStolenMiddlewareException, PaymentNotFoundMiddlewareException
Copyright © 2019. All rights reserved.