mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(pm_list): add required fields for bancontact_card for Mollie, Adyen and Stripe (#3035)
This commit is contained in:
		| @ -4177,13 +4177,85 @@ impl Default for super::settings::RequiredFields { | |||||||
|                         ConnectorFields { |                         ConnectorFields { | ||||||
|                             fields: HashMap::from([ |                             fields: HashMap::from([ | ||||||
|                                 ( |                                 ( | ||||||
|                                     enums::Connector::Stripe, |                                     enums::Connector::Mollie, | ||||||
|                                     RequiredFieldFinal { |                                     RequiredFieldFinal { | ||||||
|                                         mandate: HashMap::new(), |                                         mandate: HashMap::new(), | ||||||
|                                         non_mandate: HashMap::new(), |                                         non_mandate: HashMap::new(), | ||||||
|                                         common: HashMap::new(), |                                         common: HashMap::new(), | ||||||
|                                     } |                                     } | ||||||
|                                 ), |                                 ), | ||||||
|  |                                 ( | ||||||
|  |                                     enums::Connector::Stripe, | ||||||
|  |                                     RequiredFieldFinal { | ||||||
|  |                                         mandate: HashMap::new(), | ||||||
|  |                                         non_mandate: HashMap::new(), | ||||||
|  |                                         common: HashMap::from([ | ||||||
|  |                                             ( | ||||||
|  |                                                 "payment_method_data.bank_redirect.bancontact_card.billing_details.email".to_string(), | ||||||
|  |                                                 RequiredFieldInfo { | ||||||
|  |                                                     required_field: "payment_method_data.bank_redirect.bancontact_card.billing_details.email".to_string(), | ||||||
|  |                                                     display_name: "email".to_string(), | ||||||
|  |                                                     field_type: enums::FieldType::UserEmailAddress, | ||||||
|  |                                                     value: None, | ||||||
|  |                                                 } | ||||||
|  |                                             ), | ||||||
|  |                                             ( | ||||||
|  |                                                 "payment_method_data.bank_redirect.bancontact_card.billing_details.billing_name".to_string(), | ||||||
|  |                                                 RequiredFieldInfo { | ||||||
|  |                                                     required_field: "payment_method_data.bank_redirect.bancontact_card.billing_details.billing_name".to_string(), | ||||||
|  |                                                     display_name: "billing_name".to_string(), | ||||||
|  |                                                     field_type: enums::FieldType::UserBillingName, | ||||||
|  |                                                     value: None, | ||||||
|  |                                                 } | ||||||
|  |                                             ) | ||||||
|  |                                         ]), | ||||||
|  |                                     } | ||||||
|  |                                 ), | ||||||
|  |                                 ( | ||||||
|  |                                     enums::Connector::Adyen, | ||||||
|  |                                     RequiredFieldFinal { | ||||||
|  |                                         mandate: HashMap::new(), | ||||||
|  |                                         non_mandate: HashMap::new(), | ||||||
|  |                                         common:HashMap::from([ | ||||||
|  |                                             ( | ||||||
|  |                                                 "payment_method_data.bank_redirect.bancontact_card.card_number".to_string(), | ||||||
|  |                                                 RequiredFieldInfo { | ||||||
|  |                                                     required_field: "payment_method_data.bank_redirect.bancontact_card.card_number".to_string(), | ||||||
|  |                                                     display_name: "card_number".to_string(), | ||||||
|  |                                                     field_type: enums::FieldType::UserCardNumber, | ||||||
|  |                                                     value: None, | ||||||
|  |                                                 } | ||||||
|  |                                             ), | ||||||
|  |                                             ( | ||||||
|  |                                                 "payment_method_data.bank_redirect.bancontact_card.card_exp_month".to_string(), | ||||||
|  |                                                 RequiredFieldInfo { | ||||||
|  |                                                     required_field: "payment_method_data.bank_redirect.bancontact_card.card_exp_month".to_string(), | ||||||
|  |                                                     display_name: "card_exp_month".to_string(), | ||||||
|  |                                                     field_type: enums::FieldType::UserCardExpiryMonth, | ||||||
|  |                                                     value: None, | ||||||
|  |                                                 } | ||||||
|  |                                             ), | ||||||
|  |                                             ( | ||||||
|  |                                                 "payment_method_data.bank_redirect.bancontact_card.card_exp_year".to_string(), | ||||||
|  |                                                 RequiredFieldInfo { | ||||||
|  |                                                     required_field: "payment_method_data.bank_redirect.bancontact_card.card_exp_year".to_string(), | ||||||
|  |                                                     display_name: "card_exp_year".to_string(), | ||||||
|  |                                                     field_type: enums::FieldType::UserCardExpiryYear, | ||||||
|  |                                                     value: None, | ||||||
|  |                                                 } | ||||||
|  |                                             ), | ||||||
|  |                                             ( | ||||||
|  |                                                 "payment_method_data.bank_redirect.bancontact_card.card_holder_name".to_string(), | ||||||
|  |                                                 RequiredFieldInfo { | ||||||
|  |                                                     required_field: "payment_method_data.bank_redirect.bancontact_card.card_holder_name".to_string(), | ||||||
|  |                                                     display_name: "card_holder_name".to_string(), | ||||||
|  |                                                     field_type: enums::FieldType::UserFullName, | ||||||
|  |                                                     value: None, | ||||||
|  |                                                 } | ||||||
|  |                                             ) | ||||||
|  |                                         ]), | ||||||
|  |                                     } | ||||||
|  |                                 ) | ||||||
|                             ]), |                             ]), | ||||||
|                         }, |                         }, | ||||||
|                     ), |                     ), | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Swangi Kumari
					Swangi Kumari