hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(events): Add payment cancel events

Open lsampras opened this issue 1 year ago • 0 comments

Type of Change

  • [ ] Bugfix
  • [x] 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 image

Checklist

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

lsampras avatar Mar 21 '24 10:03 lsampras