diff --git a/src/Components/SavedCardItem.res b/src/Components/SavedCardItem.res
index 12bb74ca1..188f9d89d 100644
--- a/src/Components/SavedCardItem.res
+++ b/src/Components/SavedCardItem.res
@@ -11,7 +11,9 @@ let make = (
~setRequiredFieldsBody,
) => {
let {themeObj, config, localeString} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom)
- let {hideExpiredPaymentMethods} = Recoil.useRecoilValueFromAtom(RecoilAtoms.optionAtom)
+ let {hideExpiredPaymentMethods, hideSavedCardTickIcon} = Recoil.useRecoilValueFromAtom(
+ RecoilAtoms.optionAtom,
+ )
let (cardBrand, setCardBrand) = Recoil.useRecoilState(RecoilAtoms.cardBrand)
let (
isCVCValid,
@@ -116,7 +118,8 @@ let make = (
:
{React.string(paymentMethodType->Utils.snakeToTitleCase)}
}
-
+
diff --git a/src/Types/PaymentType.res b/src/Types/PaymentType.res
index 4bf8b4ac5..11162eb9a 100644
--- a/src/Types/PaymentType.res
+++ b/src/Types/PaymentType.res
@@ -163,6 +163,7 @@ type options = {
paymentMethodsHeaderText?: string,
savedPaymentMethodsHeaderText?: string,
hideExpiredPaymentMethods: bool,
+ hideSavedCardTickIcon: bool,
}
let defaultCardDetails = {
scheme: None,
@@ -293,6 +294,7 @@ let defaultOptions = {
billingAddress: defaultBillingAddress,
sdkHandleConfirmPayment: defaultSdkHandleConfirmPayment,
hideExpiredPaymentMethods: false,
+ hideSavedCardTickIcon: false,
}
let getLayout = (str, logger) => {
switch str {
@@ -975,6 +977,7 @@ let itemToObjMapper = (dict, logger) => {
"paymentMethodsHeaderText",
"savedPaymentMethodsHeaderText",
"hideExpiredPaymentMethods",
+ "hideSavedCardTickIcon",
],
dict,
"options",
@@ -1016,6 +1019,7 @@ let itemToObjMapper = (dict, logger) => {
paymentMethodsHeaderText: ?getOptionString(dict, "paymentMethodsHeaderText"),
savedPaymentMethodsHeaderText: ?getOptionString(dict, "savedPaymentMethodsHeaderText"),
hideExpiredPaymentMethods: getBool(dict, "hideExpiredPaymentMethods", false),
+ hideSavedCardTickIcon: getBool(dict, "hideSavedCardTickIcon", false),
}
}