hyperswitch
hyperswitch copied to clipboard
feat(mandate_kv): add kv support for mandate
Type of Change
- [ ] Bugfix
- [ ] New feature
- [ x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
Mandate table is being written to db in payment flow, this change moves all db writes and updates to kv
Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
Mandate table is being written to db in payment flow, this change moves all db writes and updates to kv
How did you test it?
sanity check on payment flow
test list:
- create payment with mandate for merchant with kv enabled
- check drainer for errors and verify in db if mandate entry is written
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