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), } }