com.ibm.commerce.payment.commands

Class GetPaymentInfoCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, GetPaymentInfoCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 
    This class is replaced by QueryPaymentsInfoPolicyCmdImpl.

    public class GetPaymentInfoCmdImpl
    extends ControllerCommandImpl
    implements GetPaymentInfoCmd
    This is the default implementation of the GetPaymentInfoCmd controller command.

    Behaviour:

    • It constructs a string of name-value pairs to be appended as query string to the specified URL. The name-value pairs include payment information for the specified Order from the OrdPayMthd table.
    • The payment information to be included are:
      • Card Brand
      • Card Number
      • Card Expiry Month
      • Card Expiry Year

    Input parameters:

    Name Description
    langId Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table storeId.
    storeId The reference number of the store associated with this command.
    orderId (Required) The reference number of the order about which payment information is being requested .
    URL (Required) The URL to be called when the command completes successfully.

    Output parameters:

    None.

    Task commands called:

    None.
    See Also:
    Serialized Form
    • Constructor Detail

      • GetPaymentInfoCmdImpl

        public GetPaymentInfoCmdImpl()
        Deprecated. 
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Deprecated. 
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        A boolean that is true if this command implementation can be executed ,and false otherwise.
      • reset

        public void reset()
        Deprecated. 
        This method resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters, then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        Deprecated. 
        This method sets the orderId property of the command.
        Specified by:
        setOrderId in interface GetPaymentInfoCmd
        Parameters:
        orderId - A Long that specifies the order reference number of the Order for which the payment information is to be obtained.
      • setUrl

        public void setUrl(java.lang.String astrUrl)
        Deprecated. 
        This method sets the URL property of the command.
        Specified by:
        setUrl in interface GetPaymentInfoCmd
        Parameters:
        astrUrl - A String that specifies the URL to redirect to after the command completes its processing. The payment information is to be appended to this URL as additional name-value pairs in the query string.