From 38a4b47266c0a3c4a94fb5a95b0539d34eddce3e Mon Sep 17 00:00:00 2001 From: AkshayaFoiger Date: Thu, 12 Sep 2024 15:31:33 +0530 Subject: [PATCH] compare consr_paid_amt instead of paid_amt --- crates/router/src/connector/zsl/transformers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/router/src/connector/zsl/transformers.rs b/crates/router/src/connector/zsl/transformers.rs index 60aed55b1f49..b3e7bfb3bfdc 100644 --- a/crates/router/src/connector/zsl/transformers.rs +++ b/crates/router/src/connector/zsl/transformers.rs @@ -385,7 +385,7 @@ pub struct ZslWebhookResponse { pub paid_ccy: api_models::enums::Currency, pub paid_amt: String, pub consr_paid_ccy: Option, - pub consr_paid_amt: Option, + pub consr_paid_amt: String, pub service_fee_ccy: Option, pub service_fee: Option, pub txn_amt: String, @@ -428,7 +428,7 @@ impl ) -> Result { let paid_amount = item .response - .paid_amt + .consr_paid_amt .parse::() .change_context(errors::ConnectorError::ResponseDeserializationFailed)?; let txn_amount = item