From e1298d5fbd200ded0ca434a81f89f8cfc6326c35 Mon Sep 17 00:00:00 2001 From: Praful Koppalkar Date: Thu, 21 Mar 2024 23:22:10 +0530 Subject: [PATCH] fix(threeds): small changes --- src/App.res | 1 - src/CardUtils.res | 4 ++-- src/ThreeDSMethod.res | 8 -------- src/orca-loader/LoaderPaymentElement.res | 2 -- 4 files changed, 2 insertions(+), 13 deletions(-) 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