hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(mandate_kv): add kv support for mandate

Open akshay-97 opened this issue 10 months ago • 0 comments

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:

  1. create payment with mandate for merchant with kv enabled
  2. 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

akshay-97 avatar Apr 02 '24 13:04 akshay-97