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): [AuthorizeDotNet] merchant_requires_action for review (#11890)

Nithin N0416c91396a4
diff --git a/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs b/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
index e131ca012f..11ccfaabab 100644
--- a/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
@@ -1354,7 +1354,7 @@ fn get_payment_status(
enums::AttemptStatus::Failure
}
AuthorizedotnetPaymentStatus::RequiresAction => enums::AttemptStatus::AuthenticationPending,
- AuthorizedotnetPaymentStatus::HeldForReview => enums::AttemptStatus::Pending,
+ AuthorizedotnetPaymentStatus::HeldForReview => enums::AttemptStatus::Unresolved,
}
}
@@ -1936,6 +1936,8 @@ pub enum SyncStatus {
GeneralError,
#[serde(rename = "FDSPendingReview")]
FDSPendingReview,
+ #[serde(rename = "FDSAuthorizedPendingReview")]
+ FDSAuthorizedPendingReview,
}
#[derive(Debug, Deserialize, Serialize)]
@@ -1987,9 +1989,12 @@ impl From<SyncStatus> for enums::AttemptStatus {
SyncStatus::Voided => Self::Voided,
SyncStatus::CouldNotVoid => Self::VoidFailed,
SyncStatus::GeneralError => Self::Failure,
- SyncStatus::RefundSettledSuccessfully
- | SyncStatus::RefundPendingSettlement
- | SyncStatus::FDSPendingReview => Self::Pending,
+ SyncStatus::RefundSettledSuccessfully | SyncStatus::RefundPendingSettlement => {
+ Self::Charged
+ }
+ SyncStatus::FDSPendingReview | SyncStatus::FDSAuthorizedPendingReview => {
+ Self::Unresolved
+ }
}
}
}