PPCPaymentechGetCtrlCmd
This command is a scheduler command with site level. The input parameter includes the merchant configuration identifier (the combination of merchant identifier, payment system name, and payment configuration group). This command is triggered by the PPCPaymentechBatchCtrlCmd after a batch request is successfully sent.
- Scheduler PPCPaymentechBatchCtrlCmd runs.
- This scheduler command calls the createBatch API of PPC to create a new batch.
- PPC creates a batch record with OPEN state.
- This scheduler command calls the settleBatch API to process the batch transaction.
- Paymentech plug-in sends the batch request to Paymentech batch gateway.
Paymentech plug-in builds the batch request containing all payment transactions in the batch and sends the request to Paymentech batch gateway. Then the batch state becomes SENT.
Another scheduler PPCPaymentechBatchGetCtrlCmd is added to the scheduler job to be run later after a configured time.
- PPCPaymentechBatchGetCtrlCmd runs and tries to receive a batch response
from Paymentech batch gateway.
This scheduler command builds the request and sends it to the Paymentech batch gateway, then tries to read the response.
The response contains the results of the payment transactions in the batch. And all payment transactions are successfully processed.
- The Payment plug-in controller updates the tables to indicate successful
deposit or credit action.
For each transaction in the batch:
- The corresponding record in PPCPAYTRAN is updated where STATE is updated
to 1.
For deposit transaction, the corresponding record in PPCPAYMENT is updated where DEPOSITEDAMOUNT is updated to the requested deposit amount; for credit transaction, the corresponding record in PPCCREDIT is updated where CREDITEDAMOUNT is updated to the requested credit amount.
The corresponding record in PPCPAYINST is updated where
DEPOSITEDAMOUNT (for deposit) or CREDITEDAMOUNT (for credit) is updated to the requested deposit/credit amount and STATE is updated to 1.
- The state of batch is changed to CLOSED.
- The corresponding record in PPCPAYTRAN is updated where STATE is updated
to 1.