mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix(connector): [Adyen]add required fields for afterpay clearpay (#4858)
This commit is contained in:
@ -127,8 +127,6 @@ merchant_secret="Source verification key"
|
|||||||
payment_method_type = "eps"
|
payment_method_type = "eps"
|
||||||
[[adyen.bank_redirect]]
|
[[adyen.bank_redirect]]
|
||||||
payment_method_type = "blik"
|
payment_method_type = "blik"
|
||||||
[[adyen.bank_redirect]]
|
|
||||||
payment_method_type = "przelewy24"
|
|
||||||
[[adyen.bank_redirect]]
|
[[adyen.bank_redirect]]
|
||||||
payment_method_type = "trustly"
|
payment_method_type = "trustly"
|
||||||
[[adyen.bank_redirect]]
|
[[adyen.bank_redirect]]
|
||||||
|
|||||||
@ -127,8 +127,6 @@ merchant_secret="Source verification key"
|
|||||||
payment_method_type = "eps"
|
payment_method_type = "eps"
|
||||||
[[adyen.bank_redirect]]
|
[[adyen.bank_redirect]]
|
||||||
payment_method_type = "blik"
|
payment_method_type = "blik"
|
||||||
[[adyen.bank_redirect]]
|
|
||||||
payment_method_type = "przelewy24"
|
|
||||||
[[adyen.bank_redirect]]
|
[[adyen.bank_redirect]]
|
||||||
payment_method_type = "trustly"
|
payment_method_type = "trustly"
|
||||||
[[adyen.bank_redirect]]
|
[[adyen.bank_redirect]]
|
||||||
|
|||||||
@ -8110,6 +8110,100 @@ impl Default for super::settings::RequiredFields {
|
|||||||
]),
|
]),
|
||||||
common : HashMap::new(),
|
common : HashMap::new(),
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
enums::Connector::Adyen,
|
||||||
|
RequiredFieldFinal {
|
||||||
|
mandate : HashMap::new(),
|
||||||
|
non_mandate: 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.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,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line2".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line2".to_string(),
|
||||||
|
display_name: "line2".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine2,
|
||||||
|
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.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![
|
||||||
|
"GB".to_string(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
common : HashMap::new(),
|
||||||
|
}
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user