diff --git a/src/Components/PayNowButton.res b/src/Components/PayNowButton.res index 9b2dca7fc..def4bbdfb 100644 --- a/src/Components/PayNowButton.res +++ b/src/Components/PayNowButton.res @@ -37,11 +37,6 @@ let make = ( isExpiryValid->Option.getOr(false) && areRequiredFieldsValidValue - let buttonText = - sdkHandleConfirmPayment.buttonText->String.length > 0 - ? sdkHandleConfirmPayment.buttonText - : localeString.payNowButton - let confirmPayload = sdkHandleConfirmPayment->PaymentBody.confirmPayloadForSDKButton let handleOnClick = _ => { @@ -84,7 +79,7 @@ let make = ( {if showLoader { } else { - buttonText->React.string + localeString.payNowButton->React.string }} diff --git a/src/LoaderController.res b/src/LoaderController.res index 288e92f7d..0ca9ac8e4 100644 --- a/src/LoaderController.res +++ b/src/LoaderController.res @@ -1,6 +1,4 @@ open Utils -external toJson: 'a => Js.Json.t = "%identity" - @react.component let make = (~children, ~paymentMode, ~setIntegrateErrorError, ~logger) => { open RecoilAtoms diff --git a/src/Types/PaymentType.res b/src/Types/PaymentType.res index d641a34b7..586c310ae 100644 --- a/src/Types/PaymentType.res +++ b/src/Types/PaymentType.res @@ -134,7 +134,6 @@ type billingAddress = { type sdkHandleConfirmPayment = { handleConfirm: bool, - buttonText: string, confirmParams: ConfirmType.confirmParams, } @@ -260,7 +259,6 @@ let defaultBillingAddress = { let defaultSdkHandleConfirmPayment = { handleConfirm: false, - buttonText: "Pay Now", confirmParams: ConfirmType.defaultConfirm, } @@ -898,7 +896,6 @@ let getConfirmParams = dict => { let getSdkHandleConfirmPaymentProps = dict => { handleConfirm: dict->getBool("handleConfirm", false), - buttonText: dict->getString("buttonText", "Pay Now"), confirmParams: dict->getDictfromDict("confirmParams")->getConfirmParams, }