hyperswitch
hyperswitch copied to clipboard
refactor(payment_methods): revamp payment methods update endpoint
/payment_methods/update
endpoint doesn't currently perform the expected functionality. Revamp the endpoint such that
- It deletes the existing entry from locker.
- Create a new updated payment method and store it in locker
- Update the existing payment methods entry in Hyperswitch