diff --git a/crates/router/src/types/storage/revenue_recovery_redis_operation.rs b/crates/router/src/types/storage/revenue_recovery_redis_operation.rs index e50102b527..865bee025a 100644 --- a/crates/router/src/types/storage/revenue_recovery_redis_operation.rs +++ b/crates/router/src/types/storage/revenue_recovery_redis_operation.rs @@ -811,7 +811,13 @@ impl RedisTokenManager { Some(t) } } - None => None, + None => { + logger::warn!( + connector_customer_id = connector_customer_id, + "No token found for the customer", + ); + None + } }; Ok(token) diff --git a/crates/router/src/workflows/revenue_recovery.rs b/crates/router/src/workflows/revenue_recovery.rs index 7c09a62225..edbfcccf35 100644 --- a/crates/router/src/workflows/revenue_recovery.rs +++ b/crates/router/src/workflows/revenue_recovery.rs @@ -314,7 +314,8 @@ pub(crate) async fn get_schedule_time_for_smart_retry( let card_network_str = card_network.map(|network| network.to_string()); - let card_issuer_str = card_info.card_issuer.clone(); + let card_issuer_str = card_info.card_issuer.clone() + .filter(|card_issuer| !card_issuer.is_empty()); let card_funding_str = match card_info.card_type.as_deref() { Some("card") => None,