refactor(payment_methods): Remove legacy locker code as it is not been used (#1666)

This commit is contained in:
Shankar Singh C
2023-07-14 15:21:10 +05:30
committed by GitHub
parent 7609895210
commit 8832dd60b9
9 changed files with 53 additions and 269 deletions

View File

@ -355,13 +355,8 @@ pub async fn get_token_for_recurring_mandate(
.to_not_found_response(errors::ApiErrorResponse::PaymentMethodNotFound)?;
let token = Uuid::new_v4().to_string();
let locker_id = merchant_account
.locker_id
.to_owned()
.get_required_value("locker_id")?;
if let diesel_models::enums::PaymentMethod::Card = payment_method.payment_method {
let _ =
cards::get_lookup_key_from_locker(state, &token, &payment_method, &locker_id).await?;
let _ = cards::get_lookup_key_from_locker(state, &token, &payment_method).await?;
if let Some(payment_method_from_request) = req.payment_method {
let pm: storage_enums::PaymentMethod = payment_method_from_request;
if pm != payment_method.payment_method {