Skip to content

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

fix(connector): [Braintree] Map `SubmittedForSettlement` status to `Pending` instead of `Charged` (#1508)

Pa1NarK9cc14b80445e
diff --git a/crates/router/src/connector/braintree/transformers.rs b/crates/router/src/connector/braintree/transformers.rs
index b5e81097ca..ce1fa2262a 100644
--- a/crates/router/src/connector/braintree/transformers.rs
+++ b/crates/router/src/connector/braintree/transformers.rs
@@ -184,9 +184,7 @@ pub enum BraintreePaymentStatus {
impl From<BraintreePaymentStatus> for enums::AttemptStatus {
fn from(item: BraintreePaymentStatus) -> Self {
match item {
- BraintreePaymentStatus::Succeeded
- | BraintreePaymentStatus::SubmittedForSettlement
- | BraintreePaymentStatus::Settling => Self::Charged,
+ BraintreePaymentStatus::Succeeded | BraintreePaymentStatus::Settling => Self::Charged,
BraintreePaymentStatus::AuthorizedExpired => Self::AuthorizationFailed,
BraintreePaymentStatus::Failed
| BraintreePaymentStatus::GatewayRejected