hyperswitch-control-center
hyperswitch-control-center copied to clipboard
[BUG] - Add validation to ensure selection of atleast one payment method while configuring the processor
Bug Description
While configuring a payment processor, there is no validation to check if the user has not selected any payment method.
Resulting in configuring payment processors without any active payment methods.
Expected Behavior
There should always be a check that ensures that connector can only be marked as active when atleast one payment method is selected.
Actual Behavior
We can configure a payment processor, without necessarily selecting a payment method, Attached ss in Bug description.
Steps To Reproduce
Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.
- Go to "Connectors" section in the control centre.
- Go on to choose a payment processor, and deselect all payment methods.
- Activate the payment processor
Context For The Bug
No response
Have you spent some time checking if this bug has been raised before?
- [X] I checked and didn't find a similar issue
Have you read the Contributing Guidelines?
- [X] I have read the Contributing Guidelines
Are you willing to submit a PR?
No, but I'm happy to collaborate on a PR with someone else