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): fix incorrect mapping of attempt status in AuthorizeDotNet connector (#7523)

Anurag04ede122e45a
diff --git a/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs b/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
index d7f50aa740..3ba9e76cc7 100644
--- a/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
@@ -1587,8 +1587,9 @@ pub struct AuthorizedotnetRSyncResponse {
impl From<SyncStatus> for enums::AttemptStatus {
fn from(transaction_status: SyncStatus) -> Self {
match transaction_status {
- SyncStatus::SettledSuccessfully => Self::Charged,
- SyncStatus::CapturedPendingSettlement => Self::CaptureInitiated,
+ SyncStatus::SettledSuccessfully | SyncStatus::CapturedPendingSettlement => {
+ Self::Charged
+ }
SyncStatus::AuthorizedPendingCapture => Self::Authorized,
SyncStatus::Declined => Self::AuthenticationFailed,
SyncStatus::Voided => Self::Voided,