Skip to content
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(events): Add payment cancel events #4166

Merged
merged 63 commits into from
Apr 15, 2024
Merged

Conversation

lsampras
Copy link
Member

@lsampras lsampras commented Mar 21, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

  • pass along request_state to payment_core
  • update updatetrackers trait to accept request state
  • update the paymentcancel implementation of updatetracker to generate an event

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

  • Generating domain events that can be used to track the high level overview of any process

How did you test it?

  • create a payment & then cancel it
{"topic" = "hyperswitch-api-events"}

image

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

lsampras and others added 30 commits February 27, 2024 16:24
@lsampras lsampras force-pushed the add_payment_cancel_events branch from 724e2e7 to b0a35b5 Compare April 12, 2024 08:36
Copy link
Contributor

@ThisIsMani ThisIsMani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dashboard specific changes looks fine.

Copy link
Contributor

@Chethan-rao Chethan-rao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Routing specific changes LGTM

@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Apr 15, 2024
Merged via the queue into main with commit dea21c6 Apr 15, 2024
13 of 15 checks passed
@Gnanasundari24 Gnanasundari24 deleted the add_payment_cancel_events branch April 15, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(events): create a framework for emitting events & capture audit/lifecycle events from application
6 participants