Class PaymentCancellationAuthorisationNeededDecider


  • @Service
    public class PaymentCancellationAuthorisationNeededDecider
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isNoScaRequired​(boolean authorisationByAspspRequired)
      Decides whether authorisation start is needed according to bank profile setting and spi response boolean field No authorisation start takes place only when both 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' are false
      boolean isScaRequired​(boolean authorisationByAspspRequired)
      Decides whether authorisation start is needed according to bank profile setting and spi response boolean field Authorisation start occurs when at least one of 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' fields is true
    • Constructor Detail

      • PaymentCancellationAuthorisationNeededDecider

        public PaymentCancellationAuthorisationNeededDecider()
    • Method Detail

      • isNoScaRequired

        public boolean isNoScaRequired​(boolean authorisationByAspspRequired)
        Decides whether authorisation start is needed according to bank profile setting and spi response boolean field No authorisation start takes place only when both 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' are false
        Parameters:
        authorisationByAspspRequired - does ASPSP requires authorisation start
        Returns:
        is no SCA is needed
      • isScaRequired

        public boolean isScaRequired​(boolean authorisationByAspspRequired)
        Decides whether authorisation start is needed according to bank profile setting and spi response boolean field Authorisation start occurs when at least one of 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' fields is true
        Parameters:
        authorisationByAspspRequired - does ASPSP requires authorisation start
        Returns:
        is no SCA is needed