Fix(router): [razorpay] update refund webhook reference id (#5297)

This commit is contained in:
AkshayaFoiger
2024-07-11 19:07:41 +05:30
committed by GitHub
parent bcb3450445
commit 48e3b41e32

View File

@ -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(