diff --git a/src/Payments/PaymentMethodsRecord.res b/src/Payments/PaymentMethodsRecord.res index 6fff42908..71ce00894 100644 --- a/src/Payments/PaymentMethodsRecord.res +++ b/src/Payments/PaymentMethodsRecord.res @@ -492,6 +492,13 @@ let paymentMethodsFields = [ fields: [InfoElement], miniIcon: None, }, + { + paymentMethodName: "local_bank_transfer_transfer", + fields: [InfoElement], + icon: Some(icon("bank", ~size=19)), + displayName: "Local Bank Transfer", + miniIcon: None, + }, ] type required_fields = { @@ -579,6 +586,7 @@ let dynamicFieldsEnabledPaymentMethods = [ "sofort", "pix_transfer", "giropay", + "local_bank_transfer_transfer", ] let getIsBillingField = requiredFieldType => { diff --git a/src/Utilities/PaymentBody.res b/src/Utilities/PaymentBody.res index bb83b64cd..740d8c93f 100644 --- a/src/Utilities/PaymentBody.res +++ b/src/Utilities/PaymentBody.res @@ -1552,6 +1552,26 @@ let pixTransferBody = () => { ] } +let localBankTransferBody = () => { + [ + ("payment_method", "bank_transfer"->JSON.Encode.string), + ("payment_method_type", "local_bank_transfer"->JSON.Encode.string), + ( + "payment_method_data", + [ + ( + "bank_transfer", + [("local_bank_transfer", Dict.make()->JSON.Encode.object)] + ->Dict.fromArray + ->JSON.Encode.object, + ), + ] + ->Dict.fromArray + ->JSON.Encode.object, + ), + ] +} + let getPaymentBody = ( ~paymentMethod, ~fullName, @@ -1616,6 +1636,7 @@ let getPaymentBody = ( | "open_banking_uk" => openBankingUKBody() | "evoucher" => rewardBody(~paymentMethodType=paymentMethod) | "pix_transfer" => pixTransferBody() + | "local_bank_transfer_transfer" => localBankTransferBody() | _ => [] } }