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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
Fix(router): [razorpay] update refund webhook reference id (#5297)
AkshayaFoiger48e3b41e32ba
diff --git a/crates/router/src/connector/razorpay.rs b/crates/router/src/connector/razorpay.rsindex 15fac49212..737ead477c 100644--- a/crates/router/src/connector/razorpay.rs+++ b/crates/router/src/connector/razorpay.rs@@ -630,7 +630,7 @@ impl api::IncomingWebhook for Razorpay {let webhook_resource_object = get_webhook_object_from_body(request.body)?;match webhook_resource_object.refund {Some(refund_data) => Ok(api_models::webhooks::ObjectReferenceId::RefundId(- api_models::webhooks::RefundIdType::RefundId(refund_data.entity.id),+ api_models::webhooks::RefundIdType::ConnectorRefundId(refund_data.entity.id),)),None => Ok(api_models::webhooks::ObjectReferenceId::PaymentId(api_models::payments::PaymentIdType::ConnectorTransactionId(