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): Add Support for CUSTOMERREQUEST Refund Reason in Adyen (#9035)

Anurag2da681a265ef
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
index 76a13085ea..db58519908 100644
--- a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
@@ -1415,7 +1415,7 @@ impl FromStr for AdyenRefundRequestReason {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s.to_uppercase().as_str() {
"FRAUD" => Ok(Self::FRAUD),
- "CUSTOMER REQUEST" => Ok(Self::CUSTOMERREQUEST),
+ "CUSTOMER REQUEST" | "CUSTOMERREQUEST" => Ok(Self::CUSTOMERREQUEST),
"RETURN" => Ok(Self::RETURN),
"DUPLICATE" => Ok(Self::DUPLICATE),
"OTHER" => Ok(Self::OTHER),