Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(router): [razorpay] make source verification false (#5268)

AkshayaFoiger3da93f1f7368
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<bool, errors::ConnectorError> {
+ Ok(false)
+ }
+
fn get_webhook_event_type(
&self,
request: &api::IncomingWebhookRequestDetails<'_>,