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(connector): [ZSL] compare consr_paid_amt with the total amount for identifying partial payments (#5873)

AkshayaFoiger985761cfb315
diff --git a/crates/router/src/connector/zsl/transformers.rs b/crates/router/src/connector/zsl/transformers.rs
index 60aed55b1f..b3e7bfb3bf 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<api_models::enums::Currency>,
- pub consr_paid_amt: Option<String>,
+ pub consr_paid_amt: String,
pub service_fee_ccy: Option<api_models::enums::Currency>,
pub service_fee: Option<String>,
pub txn_amt: String,
@@ -428,7 +428,7 @@ impl<F>
) -> Result<Self, Self::Error> {
let paid_amount = item
.response
- .paid_amt
+ .consr_paid_amt
.parse::<i64>()
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
let txn_amount = item