Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(locker): remove unnecessary assertions for locker_id on BasiliskLocker when saving cards (#1337)

Shankar Singh C23458bc42776
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index cba6aef730..499056aa4e 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -262,12 +262,6 @@ pub async fn add_card_hs(
let db = &*state.store;
let merchant_id = &merchant_account.merchant_id;
- let _ = merchant_account
- .locker_id
- .to_owned()
- .get_required_value("locker_id")
- .change_context(errors::VaultError::SaveCardFailed)?;
-
let request =
payment_methods::mk_add_card_request_hs(jwekey, locker, &card, &customer_id, merchant_id)
.await?;