diff --git a/crates/router/src/routes/verification.rs b/crates/router/src/routes/verification.rs index b429368197..1de0803170 100644 --- a/crates/router/src/routes/verification.rs +++ b/crates/router/src/routes/verification.rs @@ -14,10 +14,8 @@ pub async fn apple_pay_merchant_registration( state: web::Data, req: HttpRequest, json_payload: web::Json, - path: web::Path, ) -> impl Responder { let flow = Flow::Verification; - let merchant_id = path.into_inner(); api::server_wrap( flow, state.get_ref(), @@ -26,7 +24,7 @@ pub async fn apple_pay_merchant_registration( |state, _, body| { verification::verify_merchant_creds_for_applepay(state, &req, body, &state.conf.kms) }, - &auth::MerchantIdAuth(merchant_id.clone()), + auth::auth_type(&auth::ApiKeyAuth, &auth::JWTAuth, req.headers()), ) .await }