Class ServiceProviderCheckPaymentPolicyDisplayCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CheckPaymentPolicyDisplayCmd,,,,,,

    public class ServiceProviderCheckPaymentPolicyDisplayCmdImpl
    extends CheckPaymentPolicyDisplayCmdImpl
    implements CheckPaymentPolicyDisplayCmd
    This is the default implementation of the ListPaymentPolicyCmd task command. It gets a list of PaymentPolicyInfo objects representing Payment Business Policies that the store supports.

    Input parameters:

    commandContext The command context.
    storeId The store id.

    Output parameters:

    paymentPolicyInfo[] an array of Payment Policy Info objects.
    See Also:
    Serialized Form
    • Field Detail


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

        public static final java.lang.String CLASSNAME
        The name of this command.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceProviderCheckPaymentPolicyDisplayCmdImpl

        public ServiceProviderCheckPaymentPolicyDisplayCmdImpl()
    • 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. If checkDummyPayment=true in request property, set display=true for payment policy which display=false && spsDummy=false. If checkDummyPayment was not set or checkDummyPayment=false, set display=false for payment policy which display=true && spsDummy=true. This protected method can be overridden to implement other filter logic.
        Specified by:
        isDisplayAllowed in interface CheckPaymentPolicyDisplayCmd
        isDisplayAllowed in class CheckPaymentPolicyDisplayCmdImpl
        abPolicy - the payment policy to be checked
        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. Check checkDummyPayment value in request property. If checkDummyPayment=true, get payment policy's attribute 'spsDummy'. If spsDummy=true, return true that the dummy payment method is allowed.
        Specified by:
        isDummyPaymentMethodAllowed in interface CheckPaymentPolicyDisplayCmd
        isDummyPaymentMethodAllowed in class CheckPaymentPolicyDisplayCmdImpl
        policyId -
        boolean value whether dummy payment method is allowed