feat(payment_methods): added kv support for payment_methods table (#4311)

Co-authored-by: Akshay S <akshay.s@Akshay-Subramanian-D66TQ6D97K.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
akshay-97
2024-04-10 19:29:50 +05:30
committed by GitHub
parent 9448673c1c
commit eb3cecdd74
35 changed files with 1017 additions and 315 deletions

View File

@ -201,7 +201,9 @@ pub async fn payment_method_retrieve_api(
state,
&req,
payload,
|state, auth, pm, _| cards::retrieve_payment_method(state, pm, auth.key_store),
|state, auth, pm, _| {
cards::retrieve_payment_method(state, pm, auth.key_store, auth.merchant_account)
},
&auth::ApiKeyAuth,
api_locking::LockAction::NotApplicable,
))
@ -319,6 +321,7 @@ pub async fn default_payment_method_set_api(
auth.key_store,
&customer_id,
default_payment_method.payment_method_id,
auth.merchant_account.storage_scheme,
)
},
&*ephemeral_auth,