hyperswitch-control-center icon indicating copy to clipboard operation
hyperswitch-control-center copied to clipboard

[BUG] - Add validation to ensure selection of atleast one payment method while configuring the processor

Open gorakhnathy7 opened this issue 8 months ago • 0 comments

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. Screenshot 2024-06-04 at 4 44 11 PM Screenshot 2024-06-04 at 4 49 38 PM

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.

  1. Go to "Connectors" section in the control centre.
  2. Go on to choose a payment processor, and deselect all payment methods.
  3. 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?

Are you willing to submit a PR?

No, but I'm happy to collaborate on a PR with someone else

gorakhnathy7 avatar Jun 04 '24 11:06 gorakhnathy7