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
fix(connector): deserialization error due to latest_charge stripe (#1740)
Hrithikeshc53631ef5564
diff --git a/crates/router/src/connector/stripe.rs b/crates/router/src/connector/stripe.rsindex 80547e7dba..8daca35205 100644--- a/crates/router/src/connector/stripe.rs+++ b/crates/router/src/connector/stripe.rs@@ -516,9 +516,9 @@ impltypes::PaymentsCaptureData: Clone,types::PaymentsResponseData: Clone,{- let response: stripe::PaymentIntentSyncResponse = res+ let response: stripe::PaymentIntentResponse = res.response- .parse_struct("PaymentIntentSyncResponse")+ .parse_struct("PaymentIntentResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;logger::info!(connector_response=?response);types::RouterData::try_from(types::ResponseRouterData {@@ -1885,7 +1885,8 @@ impl services::ConnectorRedirectResponse for Stripe {payments::CallConnectorAction::Trigger,|status| match status {transformers::StripePaymentStatus::Failed- | transformers::StripePaymentStatus::Pending => {+ | transformers::StripePaymentStatus::Pending+ | transformers::StripePaymentStatus::Succeeded => {payments::CallConnectorAction::Trigger}_ => payments::CallConnectorAction::StatusUpdate {