mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	feat(connector): add Samsung pay mandate support for Cybersource (#7298)
This commit is contained in:
		| @ -9128,7 +9128,86 @@ impl Default for settings::RequiredFields { | ||||
|                                     RequiredFieldFinal { | ||||
|                                         mandate: HashMap::new(), | ||||
|                                         non_mandate: HashMap::new(), | ||||
|                                         common: HashMap::new(), | ||||
|                                         common: HashMap::from( | ||||
|                                             [ | ||||
|                                                 ( | ||||
|                                                     "billing.email".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.billing.email".to_string(), | ||||
|                                                         display_name: "email".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserEmailAddress, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ), | ||||
|                                                 ( | ||||
|                                                     "billing.address.first_name".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.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: "payment_method_data.billing.address.last_name".to_string(), | ||||
|                                                         display_name: "billing_last_name".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserBillingName, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ), | ||||
|                                                 ( | ||||
|                                                     "billing.address.city".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.billing.address.city".to_string(), | ||||
|                                                         display_name: "city".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserAddressCity, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ), | ||||
|                                                 ( | ||||
|                                                     "billing.address.state".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.billing.address.state".to_string(), | ||||
|                                                         display_name: "state".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserAddressState, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ), | ||||
|                                                 ( | ||||
|                                                     "billing.address.zip".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.billing.address.zip".to_string(), | ||||
|                                                         display_name: "zip".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserAddressPincode, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ), | ||||
|                                                 ( | ||||
|                                                     "billing.address.country".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.billing.address.country".to_string(), | ||||
|                                                         display_name: "country".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserAddressCountry{ | ||||
|                                                             options: vec![ | ||||
|                                                                 "ALL".to_string(), | ||||
|                                                             ] | ||||
|                                                         }, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ), | ||||
|                                                 ( | ||||
|                                                     "billing.address.line1".to_string(), | ||||
|                                                     RequiredFieldInfo { | ||||
|                                                         required_field: "payment_method_data.billing.address.line1".to_string(), | ||||
|                                                         display_name: "line1".to_string(), | ||||
|                                                         field_type: enums::FieldType::UserAddressLine1, | ||||
|                                                         value: None, | ||||
|                                                     } | ||||
|                                                 ) | ||||
|                                             ] | ||||
|                                         ), | ||||
|                                     } | ||||
|                                 ), | ||||
|                             ]), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shankar Singh C
					Shankar Singh C