hyperswitch
hyperswitch copied to clipboard
feat(events): Add payment cancel events
Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
- pass along request_state to payment_core
- update
updatetrackerstrait 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
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