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): [Braintree] fix status mapping for braintree (#1941)
chikke srujand30fefb2c08d
diff --git a/crates/router/src/connector/braintree/transformers.rs b/crates/router/src/connector/braintree/transformers.rsindex 4ad6317c00..e38d89fb01 100644--- a/crates/router/src/connector/braintree/transformers.rs+++ b/crates/router/src/connector/braintree/transformers.rs@@ -193,7 +193,9 @@ pub enum BraintreePaymentStatus {impl From<BraintreePaymentStatus> for enums::AttemptStatus {fn from(item: BraintreePaymentStatus) -> Self {match item {- BraintreePaymentStatus::Succeeded | BraintreePaymentStatus::Settling => Self::Charged,+ BraintreePaymentStatus::Succeeded+ | BraintreePaymentStatus::Settling+ | BraintreePaymentStatus::Settled => Self::Charged,BraintreePaymentStatus::AuthorizedExpired => Self::AuthorizationFailed,BraintreePaymentStatus::Failed| BraintreePaymentStatus::GatewayRejected