Skip to content

Commit 72c3950

Browse files
committed
feat(router): Enable client_secret auth for payments_get_intent [v2]
1 parent 9f9fef4 commit 72c3950

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

crates/router/src/routes/payments.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,16 @@ pub async fn payments_get_intent(
232232
header_payload.clone(),
233233
)
234234
},
235-
&auth::V2ApiKeyAuth {
236-
is_connected_allowed: false,
237-
is_platform_allowed: false,
238-
},
235+
auth::api_or_client_auth(
236+
&auth::V2ApiKeyAuth {
237+
is_connected_allowed: false,
238+
is_platform_allowed: false,
239+
},
240+
&auth::V2ClientAuth(common_utils::types::authentication::ResourceId::Payment(
241+
global_payment_id.clone(),
242+
)),
243+
req.headers(),
244+
),
239245
api_locking::LockAction::NotApplicable,
240246
))
241247
.await

0 commit comments

Comments
 (0)