Skip to content

Commit

Permalink
fix(connector): [ZSL] compare consr_paid_amt with the total amount fo…
Browse files Browse the repository at this point in the history
…r identifying partial payments (#5881)

Co-authored-by: likhinbopanna <[email protected]>
  • Loading branch information
AkshayaFoiger and likhinbopanna authored Sep 13, 2024
1 parent 32fd4ee commit c126ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/connector/zsl/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c126ca3

Please sign in to comment.