public class PPCPaymentechBatchCtrlCmdImpl extends ToolsControllerCommandImpl implements PPCPaymentechBatchCtrlCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
Name | XPath | Description |
---|---|---|
merchConfId | /XML/merchConfId | Mandatory when running as a scheduler. Ignore when batchdId is set. |
batchId | /XML/batchId | Mandatory when this command is called to process an existing batch. Ignore when running as a scheduler. Note that the batch to be settled should not be in the state of "SENT". |
forceClose | /XML/forceClose | This parameter indicates that this batch will be closed whatever the result is. Optional. |
It first creates batches for the pending deposit/credit transactions by calling the createBatch API of PluginController. Then it calls the settleBatch API of PluginController to process the new created batch.
After the batch is sent, it schedules a job of PPCPaymentechBatchGetCtrlCmd who will send RFR to the back end and receive the RFR response for this batch.
It finds the batch according to the batchId by calling the getBatch API and calls the settleBatch API of PluginController to process the batch. Then it schedules a job of PPCPaymentechBatchGetCtrlCmd who will send RFR request to the back end and receive the RFR response for this batch. The field batchId must be set before the command PPCPaymentechBatchGetCtrlCmd is called.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM Copyright notice field.
|
Constructor and Description |
---|
PPCPaymentechBatchCtrlCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getBatchId()
This method returns the batch identifier.
|
java.lang.String | getMerchConfId()
This method returns the merchant configuration identifier.
|
protected void | handleSubmitError(ECException e)
This method Constructs and returns the error message.
|
boolean | isForceClose()
This method judges if the forceClose flag is set as true or false.
|
void | performExecute()
This method performs the main business logic of the command.
|
void | reset()
This method resets the command fields.
|
void | setBatchId(java.lang.String batchIdLocal)
This method sets the batch identifier.
|
void | setForceClose(boolean thisForceClose)
This method sets if the forceClose flag is set as true or false.
|
void | setMerchConfId(java.lang.String merchConfIdLocal)
This method sets the merchant configuration identifier.
|
void | setRequestProperties(TypedProperty reqParms)
This method sets the various properties of the command with the parameters received.
|
void | validateParameters()
This method gets information from requestProperties and sets the information into the command local variables.
|
public static final java.lang.String COPYRIGHT
public void performExecute() throws ECException
If the batchId is not null , it will first get the batch by calling the getBatch API of payment interface. This actually gets the batch from the DB if the state of this batch is not "SENT". Then it settle the batch by calling the settleBatch API of payment interface.
Else if the batchId is null, it will create batch for related transactions first and then settle this batch by calling the settleBatch API of payment interface.
After the batch is settled successfully, a new job of GetPaymentechBatch is added to get the result of the batch.
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void validateParameters() throws ECException
public void setBatchId(java.lang.String batchIdLocal)
public java.lang.String getBatchId()
public java.lang.String getMerchConfId()
public void setMerchConfId(java.lang.String merchConfIdLocal)
public boolean isForceClose()
public void setForceClose(boolean thisForceClose)
protected void handleSubmitError(ECException e) throws ECApplicationException
public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.