-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(payments): Add audit events for PaymentUpdate update #6426
Conversation
Changed Files
|
Please review and suggest changes, if any. cc: @Isampras @ShivanshMathurJuspay @ivor11 |
For the UI in this screenshot, you can find the docs to set up Kafka, kafka-ui (the interface in the screenshot) and ClickHouse using Docker Compose here: https://github.com/juspay/hyperswitch/tree/main/crates/analytics/docs and then try generating said events and monitor logs in kafka-ui. Also the docs are self-explanatory but still if in any doubt ping us in this slack channel |
Hey @Rutam21 Any updates. |
@maverox I tried updating the respective cc: @gorakhnathy7 |
hey bro this happens with me as well when i am running the server locally (not containerized) cargo r so if your server is running and all these other containers are running as well there shouldn't be any problem try make some payments using the api or dashboard and check for new logs there. |
@tsdk02 I will push another commit to add the |
Hey @Rutam21, a gentle reminder to add the suggested changes to this PR, so it can be merged. |
@tsdk02 I have added the |
@tsdk02 Please review and suggest changes, if any. Thanks. |
The merge conflict is resolved and the branch is updated. Please review, approve and add to the merge queue. Thanks. |
Type of Change
Description
This PR adds an Audit event for the PaymentUpdate operation.
Additional Changes
This PR modifies the files below
crates/router/src/core/payments/operations/payment_update.rs
crates/router/src/events/audit_events.rs
Motivation and Context
This PR fixes #4682
How did you test it
Payments - Create
endpoint.Make a payment with
"confirm": false
Payments - Update
endpoint.Audit log will get generated and can be viewed in hyperswitch-audit-events topic in kafka with
PaymentUpdate
event-type.Amount parameter can be verified in the event.
Now payment can be completed by hitting the
Payments - Confirm
endpoint.Checklist
cargo +nightly fmt --all
cargo clippy