diff --git a/src/Payments/PaymentMethodsRecord.res b/src/Payments/PaymentMethodsRecord.res index f0cd6a750..e8c85c8c5 100644 --- a/src/Payments/PaymentMethodsRecord.res +++ b/src/Payments/PaymentMethodsRecord.res @@ -468,7 +468,7 @@ let paymentMethodsFields = [ paymentMethodName: "open_banking_uk", icon: Some(icon("open_banking", ~size=19, ~width=50)), displayName: "Open Banking", - fields: [Country, InfoElement], + fields: [InfoElement], miniIcon: Some(icon("open_banking", ~size=19)), }, { @@ -556,6 +556,7 @@ let dynamicFieldsEnabledPaymentMethods = [ "google_pay", "apple_pay", "bancontact_card", + "open_banking_uk", ] let getIsBillingField = requiredFieldType => { diff --git a/src/Utilities/PaymentBody.res b/src/Utilities/PaymentBody.res index d1baab3d0..69e60785d 100644 --- a/src/Utilities/PaymentBody.res +++ b/src/Utilities/PaymentBody.res @@ -1430,7 +1430,7 @@ let cardRedirectBody = () => { ] } -let openBankingUKBody = (~country) => { +let openBankingUKBody = () => { [ ("payment_method", "bank_redirect"->Js.Json.string), ("payment_method_type", "open_banking_uk"->Js.Json.string), @@ -1439,12 +1439,7 @@ let openBankingUKBody = (~country) => { [ ( "bank_redirect", - [ - ( - "open_banking_uk", - [("country", country->Js.Json.string)]->Js.Dict.fromArray->Js.Json.object_, - ), - ] + [("open_banking_uk", Js.Dict.empty()->Js.Json.object_)] ->Js.Dict.fromArray ->Js.Json.object_, ), @@ -1516,7 +1511,7 @@ let getPaymentBody = ( | "multibanco" => multibancoBody(~email) | "classic" => rewardBody(~paymentMethodType=paymentMethod) | "card_redirect" => cardRedirectBody() - | "open_banking_uk" => openBankingUKBody(~country) + | "open_banking_uk" => openBankingUKBody() | "evoucher" => rewardBody(~paymentMethodType=paymentMethod) | _ => [] }