From 248f09ca0bd27f25cfde549091274c5b7f603d10 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Fri, 14 Jun 2024 13:43:51 +0530 Subject: [PATCH] feat: hideCardNicknameField added --- src/Payments/CardPayment.res | 2 +- src/Types/PaymentType.res | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Payments/CardPayment.res b/src/Payments/CardPayment.res index 78d98cf95..33b38ebb6 100644 --- a/src/Payments/CardPayment.res +++ b/src/Payments/CardPayment.res @@ -338,7 +338,7 @@ let make = ( /> - +
diff --git a/src/Types/PaymentType.res b/src/Types/PaymentType.res index c3ccc0d6f..d41977b60 100644 --- a/src/Types/PaymentType.res +++ b/src/Types/PaymentType.res @@ -166,6 +166,7 @@ type options = { savedPaymentMethodsHeaderText?: string, hideExpiredPaymentMethods: bool, displayDefaultSavedPaymentIcon: bool, + hideCardNicknameField: bool, } let defaultCardDetails = { scheme: None, @@ -299,6 +300,7 @@ let defaultOptions = { sdkHandleConfirmPayment: defaultSdkHandleConfirmPayment, hideExpiredPaymentMethods: false, displayDefaultSavedPaymentIcon: true, + hideCardNicknameField: false, } let getLayout = (str, logger) => { switch str { @@ -986,6 +988,7 @@ let itemToObjMapper = (dict, logger) => { "hideExpiredPaymentMethods", "branding", "displayDefaultSavedPaymentIcon", + "hideCardNicknameField", ], dict, "options", @@ -1028,6 +1031,7 @@ let itemToObjMapper = (dict, logger) => { savedPaymentMethodsHeaderText: ?getOptionString(dict, "savedPaymentMethodsHeaderText"), hideExpiredPaymentMethods: getBool(dict, "hideExpiredPaymentMethods", false), displayDefaultSavedPaymentIcon: getBool(dict, "displayDefaultSavedPaymentIcon", true), + hideCardNicknameField: getBool(dict, "hideCardNicknameField", false), } }