com.ibm.commerce.payment.commands

Class CheckPaymentPolicyDisplayCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckPaymentPolicyDisplayCmdImpl

        public CheckPaymentPolicyDisplayCmdImpl()
    • Method Detail

      • isDisplayAllowed

        public boolean isDisplayAllowed(BusinessPolicyAccessBean abPolicy)
        Check if the payment policy is allowed to display at the client. If it is not allowed, it will be removed from the displayed policies for the Store. The default behavior is to check time constraint and the properties of display=true/false This protected method can be overridden to implement other filter logic.
        Specified by:
        isDisplayAllowed in interface CheckPaymentPolicyDisplayCmd
        Parameters:
        abPolicy - the payment policy to be checked
        Returns:
        true if the payment policy is allowed to display, otherwise return false
      • isDummyPaymentMethodAllowed

        public boolean isDummyPaymentMethodAllowed(java.lang.Long policyId)
        Check whether dummy payment method is allowed.
        Specified by:
        isDummyPaymentMethodAllowed in interface CheckPaymentPolicyDisplayCmd
        Parameters:
        policyId -
        Returns:
        boolean value whether dummy payment method is allowed