mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(payment_methods): prevent deletion of default payment method for a customer (#3964)
This commit is contained in:
@ -253,7 +253,9 @@ pub async fn payment_method_delete_api(
|
||||
state,
|
||||
&req,
|
||||
pm,
|
||||
|state, auth, req| cards::delete_payment_method(state, auth.merchant_account, req),
|
||||
|state, auth, req| {
|
||||
cards::delete_payment_method(state, auth.merchant_account, req, auth.key_store)
|
||||
},
|
||||
&auth::ApiKeyAuth,
|
||||
api_locking::LockAction::NotApplicable,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user