diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs index 74792464e6ac..ec06a6d7078f 100644 --- a/crates/router/src/configs/defaults.rs +++ b/crates/router/src/configs/defaults.rs @@ -3880,14 +3880,42 @@ impl Default for super::settings::RequiredFields { ]), } ), - // ( - // enums::Connector::Trustpay, - // RequiredFieldFinal { - // mandate: HashMap::new(), - // non_mandate: HashMap::new(), - // common: HashMap::new(), - // } - // ) + ( + enums::Connector::Trustpay, + RequiredFieldFinal { + mandate: HashMap::new(), + non_mandate: HashMap::new(), + common: HashMap::from([ + ( + "billing.address.first_name".to_string(), + RequiredFieldInfo { + required_field: "billing.address.first_name".to_string(), + display_name: "billing_first_name".to_string(), + field_type: enums::FieldType::UserBillingName, + value: None, + } + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "billing.address.last_name".to_string(), + display_name: "billing_last_name".to_string(), + field_type: enums::FieldType::UserBillingName, + value: None, + } + ), + ( + "email".to_string(), + RequiredFieldInfo { + required_field: "email".to_string(), + display_name: "email".to_string(), + field_type: enums::FieldType::UserEmailAddress, + value: None, + } + ), + ]), + } + ) ]), }, ), diff --git a/crates/router/src/connector/adyen/transformers.rs b/crates/router/src/connector/adyen/transformers.rs index d56a296ef47b..94c7f0c58778 100644 --- a/crates/router/src/connector/adyen/transformers.rs +++ b/crates/router/src/connector/adyen/transformers.rs @@ -2034,9 +2034,11 @@ impl<'a> TryFrom<&api_models::payments::BankRedirectData> for AdyenPaymentMethod api_models::payments::BankRedirectData::Blik { blik_code } => { Ok(AdyenPaymentMethod::Blik(Box::new(BlikRedirectionData { payment_type: PaymentType::Blik, - blik_code: blik_code.clone().ok_or(errors::ConnectorError::MissingRequiredField { - field_name: "blik_code", - })?, + blik_code: blik_code.clone().ok_or( + errors::ConnectorError::MissingRequiredField { + field_name: "blik_code", + }, + )?, }))) } api_models::payments::BankRedirectData::Eps { bank_name, .. } => Ok( diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rs index d424efdd9488..488a7a295bd2 100644 --- a/crates/router/src/connector/stripe/transformers.rs +++ b/crates/router/src/connector/stripe/transformers.rs @@ -1591,9 +1591,11 @@ impl TryFrom<&payments::BankRedirectData> for StripePaymentMethodData { payments::BankRedirectData::Blik { blik_code } => Ok(Self::BankRedirect( StripeBankRedirectData::StripeBlik(Box::new(StripeBlik { payment_method_data_type, - code: blik_code.clone().ok_or(errors::ConnectorError::MissingRequiredField { - field_name: "blik_code", - })?, + code: blik_code.clone().ok_or( + errors::ConnectorError::MissingRequiredField { + field_name: "blik_code", + }, + )?, })), )), payments::BankRedirectData::Eps { bank_name, .. } => Ok(Self::BankRedirect(