diff --git a/crates/router/src/routes/payments.rs b/crates/router/src/routes/payments.rs index 36c8b727b5a..2df62a36e17 100644 --- a/crates/router/src/routes/payments.rs +++ b/crates/router/src/routes/payments.rs @@ -232,10 +232,16 @@ pub async fn payments_get_intent( header_payload.clone(), ) }, - &auth::V2ApiKeyAuth { - is_connected_allowed: false, - is_platform_allowed: false, - }, + auth::api_or_client_auth( + &auth::V2ApiKeyAuth { + is_connected_allowed: false, + is_platform_allowed: false, + }, + &auth::V2ClientAuth(common_utils::types::authentication::ResourceId::Payment( + global_payment_id.clone(), + )), + req.headers(), + ), api_locking::LockAction::NotApplicable, )) .await