diff --git a/src/Payments/PaymentMethodsRecord.res b/src/Payments/PaymentMethodsRecord.res index 050542ba..15cbfee7 100644 --- a/src/Payments/PaymentMethodsRecord.res +++ b/src/Payments/PaymentMethodsRecord.res @@ -489,7 +489,7 @@ let paymentMethodsFields = [ paymentMethodName: "multibanco_transfer", icon: Some(icon("multibanco", ~size=19)), displayName: "Multibanco", - fields: [Email, InfoElement], + fields: [InfoElement], miniIcon: None, }, { diff --git a/src/Utilities/DynamicFieldsUtils.res b/src/Utilities/DynamicFieldsUtils.res index bfe4946a..ef254da5 100644 --- a/src/Utilities/DynamicFieldsUtils.res +++ b/src/Utilities/DynamicFieldsUtils.res @@ -24,6 +24,7 @@ let dynamicFieldsEnabledPaymentMethods = [ "ach", "bacs", "pay_bright", + "multibanco_transfer", ] let getName = (item: PaymentMethodsRecord.required_fields, field: RecoilAtomTypes.field) => { diff --git a/src/Utilities/PaymentBody.res b/src/Utilities/PaymentBody.res index 2d3d30a4..3774f02a 100644 --- a/src/Utilities/PaymentBody.res +++ b/src/Utilities/PaymentBody.res @@ -842,23 +842,6 @@ let thailandOBBody = (~bank) => [ ), ] -let multibancoBody = (~email) => [ - ("payment_method", "bank_transfer"->JSON.Encode.string), - ("payment_method_type", "multibanco"->JSON.Encode.string), - ( - "payment_method_data", - [ - ("billing", [("email", email->JSON.Encode.string)]->Utils.getJsonFromArrayOfJson), - ( - "bank_transfer", - [ - ("multibanco_bank_transfer", Dict.make()->JSON.Encode.object), - ]->Utils.getJsonFromArrayOfJson, - ), - ]->Utils.getJsonFromArrayOfJson, - ), -] - let pazeBody = (~completeResponse) => { open Utils let pazeCompleteResponse = @@ -901,7 +884,7 @@ let appendRedirectPaymentMethods = [ ] let appendBankeDebitMethods = ["sepa"] -let appendBankTransferMethods = ["sepa", "ach", "bacs"] +let appendBankTransferMethods = ["sepa", "ach", "bacs", "multibanco"] let getPaymentMethodSuffix = (~paymentMethodType, ~paymentMethod, ~isQrPaymentMethod) => { if isQrPaymentMethod { @@ -1008,7 +991,6 @@ let getPaymentBody = ( | "przelewy24" => p24Body(~email) | "online_banking_fpx" => fpxOBBody(~bank) | "online_banking_thailand" => thailandOBBody(~bank) - | "multibanco_transfer" => multibancoBody(~email) | "classic" | "evoucher" => rewardBody(~paymentMethodType)