Class GetPaymentInfoCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, GetPaymentInfoCmd, Protectable,,,,,,

    This class is replaced by QueryPaymentsInfoPolicyCmdImpl.

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


    • 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:


    Task commands called:

    See Also:
    Serialized Form
    • Constructor Detail

      • GetPaymentInfoCmdImpl

        public GetPaymentInfoCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        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
        isReadyToCallExecute in class AbstractECTargetableCommand
        A boolean that is true if this command implementation can be executed ,and false otherwise.
      • reset

        public void reset()
        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
        reset in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        This method sets the orderId property of the command.
        Specified by:
        setOrderId in interface GetPaymentInfoCmd
        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)
        This method sets the URL property of the command.
        Specified by:
        setUrl in interface GetPaymentInfoCmd
        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.