Skip to content

When creating a PendingTransaction through the API notify the appropriate payment integration  #227

@bmbc-dev-detec

Description

@bmbc-dev-detec

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnewRequires discussion, understanding and prioritisation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions