diff --git a/src/Types/PaymentType.res b/src/Types/PaymentType.res index 07c094cab..eb1cfa7b3 100644 --- a/src/Types/PaymentType.res +++ b/src/Types/PaymentType.res @@ -806,6 +806,7 @@ let itemToObjMapper = (dict, logger) => { "terms", "wallets", "showCardFormByDefault", + "disableSaveCards", ], dict, "options", diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res index 3845af66a..e2b2ae91f 100644 --- a/src/orca-loader/Hyper.res +++ b/src/orca-loader/Hyper.res @@ -91,7 +91,13 @@ let make = (publishableKey, _options: option, analyticsInfo: optionJs.String2.startsWith("pk_snd_")) { + if ( + publishableKey == "" || + !( + publishableKey->Js.String2.startsWith("pk_snd_") || + publishableKey->Js.String2.startsWith("pk_prd_") + ) + ) { manageErrorWarning(INVALID_PK, (), ~logger) } if (