Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(connector): [ZSL] compare consr_paid_amt with the total amount for identifying partial payments #5873

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading