From c126ca3094747412c81878355cf2590415759c98 Mon Sep 17 00:00:00 2001 From: AkshayaFoiger <131388445+AkshayaFoiger@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:29:08 +0530 Subject: [PATCH] fix(connector): [ZSL] compare consr_paid_amt with the total amount for identifying partial payments (#5881) Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com> --- 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