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

feat(connector): [ADYEN] Add Support for MOTO Payments (#9134)

Sayak Bhattacharya44ffb4fe3618
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
index 1a83cb7db6..51333bf80d 100644
--- a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
@@ -1804,7 +1804,13 @@ impl From<&PaymentsAuthorizeRouterData> for AdyenShopperInteraction {
fn from(item: &PaymentsAuthorizeRouterData) -> Self {
match item.request.off_session {
Some(true) => Self::ContinuedAuthentication,
- _ => Self::Ecommerce,
+ _ => match item.request.payment_channel {
+ Some(common_enums::PaymentChannel::Ecommerce)
+ | None
+ | Some(common_enums::PaymentChannel::Other(_)) => Self::Ecommerce,
+ Some(common_enums::PaymentChannel::MailOrder)
+ | Some(common_enums::PaymentChannel::TelephoneOrder) => Self::Moto,
+ },
}
}
}