Class PaymentConfigurationUpdateCtrlCmdImpl

    • Field Detail


        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PaymentConfigurationUpdateCtrlCmdImpl

        public PaymentConfigurationUpdateCtrlCmdImpl()
    • Method Detail

      • validateParameters

        public void validateParameters()
                                throws ECException
        This method validates the parameters passed in. Also ,it gets the payment configuration id which CSR wants to add/update from requestProperties. And it sets the information into the command local variables. It sets the success redirect URL as well.
        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand
        ECException - If the XMLObject cannot be parsed as expected.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the logic of adding/updating the payment configuration ,which invokes Payment Rules PaymentConfigurationUtil to perform this action.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECException - In case of any error
      • getAction

        public java.lang.String getAction()
        This method returns the action on the payment configuration, which could be "new" or "update".
        action The action on the payment configuration
      • getConfigId

        public java.lang.String getConfigId()
        This method returns the payment configuration id.
        configId The payment configuration id
      • getMethodName

        public java.lang.String getMethodName()
        This method returns the payment/refund method name.
        methodName The payment method name
      • setAction

        public void setAction(java.lang.String string)
        This method sets the action on the payment configuration, which could be "new" or "update".
        string - The action on the payment configuration
      • setConfigId

        public void setConfigId(java.lang.String string)
        This method sets the payment configuration id.
        string - The payment configuration id
      • setMethodName

        public void setMethodName(java.lang.String string)
        This method sets the payment/refund method name.
        string - The payment method name
      • getMethodType

        public java.lang.String getMethodType()
        This method returns the method type, which could be payment or refund.
        methodType The method type
      • setMethodType

        public void setMethodType(java.lang.String string)
        This method sets the method type, which could be payment or refund.
        string - The method type