Capture
This page explains the implementation of auto-capture.
- The
Charger_Payment_History
table is filled duringremoteStartCharging
. This is to identify whether the charging session is via PayMongo or Wallet. - On charger status updates, the
insertTransactionData
handler is triggered. - There, we send a message to the
CapturePaymentQueue
if the following conditions are met:- The charger was stopped.
- The capture type of the payment associated with the charging session is
manual
.
- The handler associated with the
CapturePaymentQueue
will then attempt to capture the payment. If it fails, the message will be sent to the dead-letter queue.