-
Notifications
You must be signed in to change notification settings - Fork 2
When creating a PendingTransaction through the API notify the appropriate payment integration #227
Description
When we create Pending transaction through the API we should notify the appropriate payment integration (determined via the pendingTransaction MOP Code) that a pending transaction exists. This will ensure that any jobs within the payment integration that poll for updates to payment status will notify the IMS when an update is available.
The use case for this is pending transactions created via ATP.
The ATP process creates a pending transaction and then goes on to integrate with the Payment Provider directly.
However, that process shouldn't be responsible for telling us that the payment has succeeded.
Instead, if we notify the Payment Integration of the pending payment, a clean up job to process incomplete payments will identify this payment, and check the Payment Integration. If it's considered completed then the Payment Integration can call the LocalGovIMS API to processes the payment.