Skip to content

Commit

Permalink
feat: HS-2222: Dynamic fields support for IDeal, Sofort and Eps (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
prafulkoppalkar authored Feb 1, 2024
1 parent 710f705 commit 789ecb9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Payments/PaymentMethodsRecord.res
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ let paymentMethodsFields = [
{
paymentMethodName: "sofort",
icon: Some(icon("sofort", ~size=19)),
fields: [FullName, Email, Country, InfoElement],
fields: [InfoElement],
displayName: "Sofort",
miniIcon: None,
},
Expand Down Expand Up @@ -230,7 +230,7 @@ let paymentMethodsFields = [
paymentMethodName: "eps",
icon: Some(icon("eps", ~size=19, ~width=25)),
displayName: "EPS",
fields: [Bank, FullName, InfoElement],
fields: [InfoElement],
miniIcon: None,
},
{
Expand Down Expand Up @@ -321,7 +321,7 @@ let paymentMethodsFields = [
paymentMethodName: "ideal",
icon: Some(icon("ideal", ~size=19, ~width=25)),
displayName: "iDEAL",
fields: [Bank, FullName, InfoElement],
fields: [InfoElement],
miniIcon: None,
},
{
Expand Down Expand Up @@ -557,6 +557,9 @@ let dynamicFieldsEnabledPaymentMethods = [
"apple_pay",
"bancontact_card",
"open_banking_uk",
"eps",
"ideal",
"sofort",
]

let getIsBillingField = requiredFieldType => {
Expand Down

0 comments on commit 789ecb9

Please sign in to comment.