com.ibm.commerce.payment.commands

Class CheckPaymentAcceptTestCmdImpl

    • Constructor Detail

      • CheckPaymentAcceptTestCmdImpl

        public CheckPaymentAcceptTestCmdImpl()
        Deprecated. 
        CheckPaymentAcceptTestCmdImpl constructor.
    • Method Detail

      • getReturnCode

        public java.lang.String getReturnCode()
        Deprecated. 
        Returns the String return code indicating the payment approval status of the specified order.

        This sample implementation class for the TestPaymentMethod policy always returns the constant String PaymentConstants.APPROVAL_YES indicating the payment approval status of the order is valid.

        Specified by:
        getReturnCode in interface CheckPaymentAcceptPolicyCmd
        Returns:
        the String return code
      • performExecute

        public void performExecute()
                            throws ECException
        Deprecated. 
        Performs the main business logic of the command. For the TestPaymentMethod policy this command always returns the return code String that indicate a payment approval status of "YES".
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • setApproveAmount

        public void setApproveAmount(java.math.BigDecimal approveAmount)
        Deprecated. 
        Sets the approveAmount property of the command.
        Specified by:
        setApproveAmount in interface CheckPaymentAcceptPolicyCmd
        Parameters:
        approveAmount - the approved amount to be checked
      • setOrder

        public void setOrder(OrderAccessBean abOrder)
        Deprecated. 
        Sets the order property of the command.
        Specified by:
        setOrder in interface CheckPaymentAcceptPolicyCmd
        Parameters:
        abOrder - the OrderAccessBean representing the order for which the approved amount is to be checked