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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(router): [ZSL] remove partially capture status (#6689)
AkshayaFoiger05726262e6a3
diff --git a/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs b/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rsindex 8101932511..b2ba05b7cd 100644--- a/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs@@ -414,20 +414,10 @@ impl<F> TryFrom<ResponseRouterData<F, ZslWebhookResponse, PaymentsSyncData, Paym.consr_paid_amt.parse::<i64>().change_context(errors::ConnectorError::ResponseDeserializationFailed)?;- let txn_amount = item- .response- .txn_amt- .parse::<i64>()- .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;- let status = if txn_amount > paid_amount {- enums::AttemptStatus::PartialCharged- } else {- enums::AttemptStatus::Charged- };if item.response.status == "0" {Ok(Self {- status,+ status: enums::AttemptStatus::Charged,amount_captured: Some(paid_amount),response: Ok(PaymentsResponseData::TransactionResponse {resource_id: ResponseId::ConnectorTransactionId(item.response.txn_id.clone()),