feat(payments): Add audit events for PaymentStatus update
Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
This PR adds an Audit event for the PaymentStatus operation.
Additional Changes
-
[x] This PR modifies the files below
-
crates/router/src/core/payments/operations/payment_status.rs -
crates/router/src/events/audit_events.rs
Motivation and Context
This PR fixes #4677
How did you test it
This requires FRM-related flows to be tested, and may not be tested locally.
Checklist
- [x] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [x] I reviewed the submitted code
Changed Files
| File | Status |
|---|---|
Please review and suggest changes, if any. Thanks.
cc: @tsdk02 @Chethan-rao @gorakhnathy7
Hey @Rutam21,
Can you set this up locally, and try to create a payment. You can test the PaymentStatus update when you hit the Payments - Retrieve endpoint.
Try to check if you are able to log this in the hyperswitch-audit-events topic in kafka, and paste the screenshots under the How did you test it section.
Thanks
@Rutam21 I have tested this PR locally, and updated the test cases. Seems to be working fine. This PR looks good to get merged.
@likhinbopanna This PR has been approved and is ready to be added to the merge queue. Please do the needful. Thanks.