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): [Access Worldpay] correct enum deserialization for payment responses for (#8689)

Kashif58f8429f507c
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs b/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
index e7fa40c711..b1a3a86a04 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
@@ -18,11 +18,11 @@ pub struct WorldpayPaymentsResponse {
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum WorldpayPaymentResponseFields {
- AuthorizedResponse(Box<AuthorizedResponse>),
- DDCResponse(DDCResponse),
- FraudHighRisk(FraudHighRiskResponse),
RefusedResponse(RefusedResponse),
+ DDCResponse(DDCResponse),
ThreeDsChallenged(ThreeDsChallengedResponse),
+ FraudHighRisk(FraudHighRiskResponse),
+ AuthorizedResponse(Box<AuthorizedResponse>),
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]