Skip to content

Commit

Permalink
fix(connector): fix Stripe status to attempt status map (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhicodes-crypto authored May 13, 2023
1 parent 8a35f7c commit 8b85647
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/router/src/connector/stripe/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,6 @@ pub enum StripePaymentStatus {
RequiresConfirmation,
Canceled,
RequiresCapture,
// This is the case in
Pending,
}

impl From<StripePaymentStatus> for enums::AttemptStatus {
Expand All @@ -1132,11 +1130,10 @@ impl From<StripePaymentStatus> for enums::AttemptStatus {
StripePaymentStatus::Failed => Self::Failure,
StripePaymentStatus::Processing => Self::Authorizing,
StripePaymentStatus::RequiresCustomerAction => Self::AuthenticationPending,
StripePaymentStatus::RequiresPaymentMethod => Self::PaymentMethodAwaited,
StripePaymentStatus::RequiresPaymentMethod => Self::Failure,
StripePaymentStatus::RequiresConfirmation => Self::ConfirmationAwaited,
StripePaymentStatus::Canceled => Self::Voided,
StripePaymentStatus::RequiresCapture => Self::Authorized,
StripePaymentStatus::Pending => Self::Pending,
}
}
}
Expand Down

0 comments on commit 8b85647

Please sign in to comment.