diff --git a/src/App.res b/src/App.res index fcdb27448..5a24a650a 100644 --- a/src/App.res +++ b/src/App.res @@ -18,7 +18,6 @@ let make = () => { }, [logger]) let renderFullscreen = { - Js.log2("fullscreenMode", fullscreenMode) switch fullscreenMode { | "paymentloader" => | "fullscreen" => diff --git a/src/CardUtils.res b/src/CardUtils.res index 57208db7c..9dcd5ccdc 100644 --- a/src/CardUtils.res +++ b/src/CardUtils.res @@ -311,8 +311,8 @@ let calculateLuhn = value => { let sumofUnCheckedArr = Array.reduce(unCheckArr, 0, (acc, val) => acc + val->toInt) let totalSum = sumofCheckArr + sumofUnCheckedArr - //mod(totalSum, 10) == 0 - true + mod(totalSum, 10) == 0 + // true } let getCardBrandIcon = (cardType, paymentType) => { diff --git a/src/ThreeDSMethod.res b/src/ThreeDSMethod.res index 7c9bc31b5..396ace80a 100644 --- a/src/ThreeDSMethod.res +++ b/src/ThreeDSMethod.res @@ -1,12 +1,4 @@ open Utils -let getKeyValue = (json, str) => { - json - ->Js.Dict.get(str) - ->Belt.Option.getWithDefault(Js.Dict.empty()->Js.Json.object_) - ->Js.Json.decodeString - ->Belt.Option.getWithDefault("") -} - @react.component let make = () => { let (expiryTime, setExpiryTime) = React.useState(_ => 900000.0) diff --git a/src/orca-loader/LoaderPaymentElement.res b/src/orca-loader/LoaderPaymentElement.res index 514bf2f6b..106588f67 100644 --- a/src/orca-loader/LoaderPaymentElement.res +++ b/src/orca-loader/LoaderPaymentElement.res @@ -242,10 +242,8 @@ let make = (componentType, options, setIframeRef, iframeRef, mountPostMessage) = fullscreenParam.contents != "" ? `${ApiEndpoint.sdkDomainUrl}/fullscreenIndex.html?fullscreenType=${fullscreenParam.contents}` : `${ApiEndpoint.sdkDomainUrl}/fullscreenIndex.html?fullscreenType=fullscreen` - Js.log3("IFRAME STUFF", iframeURL, fullscreen.contents) fullscreen.contents ? { - Js.log3("FULLSCREEN", localSelectorString, iframeID) if iframeID == localSelectorString { let handleFullScreenCallback = (ev: Types.event) => { let json = ev.data->eventToJson