From 3da93f1f73680cc20313a068aacae3018b067b45 Mon Sep 17 00:00:00 2001 From: AkshayaFoiger <131388445+AkshayaFoiger@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:09:02 +0530 Subject: [PATCH] fix(router): [razorpay] make source verification false (#5268) --- crates/router/src/connector/razorpay.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/router/src/connector/razorpay.rs b/crates/router/src/connector/razorpay.rs index 836f71e3c1..195508dffa 100644 --- a/crates/router/src/connector/razorpay.rs +++ b/crates/router/src/connector/razorpay.rs @@ -7,6 +7,7 @@ use common_utils::{ use error_stack::{Report, ResultExt}; use masking::ExposeInterface; use transformers as razorpay; +use types::domain; use super::utils::{self as connector_utils}; use crate::{ @@ -640,6 +641,16 @@ impl api::IncomingWebhook for Razorpay { } } + async fn verify_webhook_source( + &self, + _request: &api::IncomingWebhookRequestDetails<'_>, + _merchant_account: &domain::MerchantAccount, + _merchant_connector_account: domain::MerchantConnectorAccount, + _connector_label: &str, + ) -> CustomResult { + Ok(false) + } + fn get_webhook_event_type( &self, request: &api::IncomingWebhookRequestDetails<'_>,