Skip to content

Commit

Permalink
fix: HS-111: relsolved merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
prafulkoppalkar committed Feb 1, 2024
2 parents 57f0c5a + 789ecb9 commit 666c646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ let make = (
~isCvcValidValue,
)

let submitCallback = React.useCallback((ev: Window.event) => {
let submitCallback = React.useCallback2((ev: Window.event) => {
let json = ev.data->Js.Json.parseExn
let confirm = json->getDictFromJson->ConfirmType.itemToObjMapper
let (month, year) = CardUtils.getExpiryDates(cardExpiry)
Expand Down Expand Up @@ -224,7 +224,7 @@ let make = (
}
}
}
})
}, (areRequiredFieldsValid, requiredFieldsBody))
submitPaymentData(submitCallback)

let paymentMethod = isBancontact ? "bank_redirect" : "card"
Expand Down
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 @@ -564,6 +564,9 @@ let dynamicFieldsEnabledPaymentMethods = [
"apple_pay",
"bancontact_card",
"open_banking_uk",
"eps",
"ideal",
"sofort",
"pix_transfer",
]

Expand Down

0 comments on commit 666c646

Please sign in to comment.