hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(router): add an api to enable `connector_agnostic_mit` feature

Open ShankarSinghC opened this issue 10 months ago • 2 comments

Type of Change

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

Description

This pr adds a api to enable usage of Network Transaction/Reference ID in recurring MIT payments. This will be a business profile level feature that a merchant specifies.

Additional Changes

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

Motivation and Context

How did you test it?

  1. Create a business profile for a merchant
  2. Use the below curl to enable connector_agnostic_mit feature for the business profile
curl --location 'http://localhost:8080/account/:merchant_id/business_profile/:profile_id/toggle_connector_agnostic_mit' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: api_key' \
--data '{
    "enabled": true
}'
image

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

ShankarSinghC avatar Apr 29 '24 07:04 ShankarSinghC

we need not add a separate endpoint for this, have a field in BusinessProfileUpdate

Narayanbhat166 avatar Apr 30 '24 14:04 Narayanbhat166

we need not add a separate endpoint for this, have a field in BusinessProfileUpdate

We need to add api_key auth support for this endpoint, which is not supported by BusinessProfileUpdate

ShankarSinghC avatar May 03 '24 10:05 ShankarSinghC