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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [ADYEN] Remove PMT check in function get_shopper_email (#12666)
DEEPANSHU BANSAL45ee35354c62
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rsindex a3a113aae3..544953db0f 100644--- a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs@@ -4004,13 +4004,8 @@ fn get_shopper_email(is_mandate_payment: bool,) -> CustomResult<Option<Email>, errors::ConnectorError> {if is_mandate_payment {- let payment_method_type = item- .request- .payment_method_type- .as_ref()- .ok_or(errors::ConnectorError::MissingPaymentMethodType)?;- match payment_method_type {- storage_enums::PaymentMethodType::Paypal => Ok(Some(item.get_billing_email()?)),+ match item.request.payment_method_type {+ Some(storage_enums::PaymentMethodType::Paypal) => Ok(Some(item.get_billing_email()?)),_ => Ok(item.get_optional_billing_email()),}} else {