diff --git a/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs b/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs index 60b624b1a75a..81f381ae8563 100644 --- a/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs @@ -277,7 +277,8 @@ pub enum TransactionSyncStatus { REV, // Review STL, // Settled PST, // Failed due to post-auth rule - FPR, // Failed due to fraud prevention rules + #[serde(rename = "FPR")] + FPS, // Failed due to fraud prevention rules PRE, // Failed due to pre-auth rule } @@ -569,7 +570,7 @@ impl From<&ElavonSyncResponse> for enums::RefundStatus { | TransactionSyncStatus::PEN => Self::Pending, TransactionSyncStatus::STL => Self::Success, TransactionSyncStatus::PST - | TransactionSyncStatus::FPR + | TransactionSyncStatus::FPS | TransactionSyncStatus::PRE => Self::Failure, } } @@ -585,7 +586,7 @@ impl From<&ElavonSyncResponse> for enums::AttemptStatus { SyncTransactionType::AuthOnly => Self::Authorized, }, TransactionSyncStatus::PST - | TransactionSyncStatus::FPR + | TransactionSyncStatus::FPS | TransactionSyncStatus::PRE => Self::Failure, } }