From d8a2e90f24618c194e97136d1d3f4c0ffd67bc44 Mon Sep 17 00:00:00 2001 From: Arush Date: Tue, 12 Mar 2024 01:53:36 +0530 Subject: [PATCH] fix: comments addressed --- src/Components/PayNowButton.res | 5 +---- src/Types/PaymentType.res | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Components/PayNowButton.res b/src/Components/PayNowButton.res index 9b2dca7fc..f19cfc080 100644 --- a/src/Components/PayNowButton.res +++ b/src/Components/PayNowButton.res @@ -37,10 +37,7 @@ let make = ( isExpiryValid->Option.getOr(false) && areRequiredFieldsValidValue - let buttonText = - sdkHandleConfirmPayment.buttonText->String.length > 0 - ? sdkHandleConfirmPayment.buttonText - : localeString.payNowButton + let buttonText = localeString.payNowButton let confirmPayload = sdkHandleConfirmPayment->PaymentBody.confirmPayloadForSDKButton diff --git a/src/Types/PaymentType.res b/src/Types/PaymentType.res index 28d5ff445..2fb2afd3c 100644 --- a/src/Types/PaymentType.res +++ b/src/Types/PaymentType.res @@ -132,7 +132,6 @@ type billingAddress = { type sdkHandleConfirmPayment = { handleConfirm: bool, - buttonText: string, confirmParams: ConfirmType.confirmParams, } @@ -255,7 +254,6 @@ let defaultBillingAddress = { let defaultSdkHandleConfirmPayment = { handleConfirm: false, - buttonText: "Pay Now", confirmParams: ConfirmType.defaultConfirm, } @@ -884,7 +882,6 @@ let getConfirmParams = dict => { let getSdkHandleConfirmPaymentProps = dict => { handleConfirm: dict->getBool("handleConfirm", false), - buttonText: dict->getString("buttonText", "Pay Now"), confirmParams: dict->getDictfromDict("confirmParams")->getConfirmParams, }