public class ConfigurePaymentManagerCmdImpl extends TaskCommandImpl implements ConfigurePaymentManagerCmd
Configures the Websphere Commerce Payments. (Websphere Commerce Enterprise only)
Configures the Websphere Commerce Payments based on the element PaymentsInformation in the store XML definition files. If an error occurs during configuration, an ECException will be thrown.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The full name of this class.
|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ConfigurePaymentManagerCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setDebug(boolean b)
Sets if in debug mode.
|
void | setPaymentInformationElement(org.w3c.dom.Element element)
Sets the payment information XML element.
|
void | setStoreId(java.lang.String storeId)
Sets the store ID.
|
void | setStoreIdentity(java.lang.String storeIdentity)
Sets the store Identity.
|
void | setStoreSupportedCurrencies(java.lang.String[] curs)
Sets the currencies supported by the store being configured.
|
void | validateParameters()
Extracts and validates the input parameters of this command implementation.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void performExecute() throws ECException
Configures the WCP (Websphere Commerce Payments).
Before this method is invoked, the caller must call the following methods first:
As for any other command, setCommandContext(...), must be called before this method is invoked too.
public void setPaymentInformationElement(org.w3c.dom.Element element)
Sets the payment information XML element.
All the payment information is obtained from XML children of this XML Element.
This method should be called before performExecute() is called.
public void setStoreId(java.lang.String storeId)
Sets the store ID.
The store ID is the payment merchant number.
This method should be called before performExecute() is called.
public void setStoreIdentity(java.lang.String storeIdentity)
Sets the store Identity.
The Store Identity is the payment merchant title.
If store identity's length is greater than 128 bytes, only the first 128 bytes will be used as the merchant title.
This method should be called before performExecute() is called.
public void setStoreSupportedCurrencies(java.lang.String[] curs)
Sets the currencies supported by the store being configured.
This method should be called before performExecute() is called.
public void validateParameters() throws ECException
public void setDebug(boolean b)
Sets if in debug mode.