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
revert(connector): fix stripe status to attempt status map (#1179)
Narayan Bhatbd8868efd007
diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rsindex 511404c810..d21381c560 100644--- a/crates/router/src/connector/stripe/transformers.rs+++ b/crates/router/src/connector/stripe/transformers.rs@@ -1213,6 +1213,8 @@ pub enum StripePaymentStatus {RequiresConfirmation,Canceled,RequiresCapture,+ // This is the case in Sofort Bank Redirects+ Pending,}impl From<StripePaymentStatus> for enums::AttemptStatus {@@ -1222,10 +1224,12 @@ impl From<StripePaymentStatus> for enums::AttemptStatus {StripePaymentStatus::Failed => Self::Failure,StripePaymentStatus::Processing => Self::Authorizing,StripePaymentStatus::RequiresCustomerAction => Self::AuthenticationPending,+ // Make the payment attempt status as failedStripePaymentStatus::RequiresPaymentMethod => Self::Failure,StripePaymentStatus::RequiresConfirmation => Self::ConfirmationAwaited,StripePaymentStatus::Canceled => Self::Voided,StripePaymentStatus::RequiresCapture => Self::Authorized,+ StripePaymentStatus::Pending => Self::Pending,}}}