Skip to content

Commit

Permalink
fix(connector): deserialization error due to latest_charge stripe (#1740
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hrithikesh026 authored Jul 19, 2023
1 parent 5dcf758 commit c53631e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/router/src/connector/stripe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,9 @@ impl
types::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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c53631e

Please sign in to comment.