diff --git a/src/Payments/GPay.res b/src/Payments/GPay.res index 6cf22d10c..0ee319eb4 100644 --- a/src/Payments/GPay.res +++ b/src/Payments/GPay.res @@ -81,8 +81,6 @@ let default = (props: props) => { ) } let processPayment = (body: array<(string, Js.Json.t)>) => { - Js.log("INSIDE Processing payment") - Js.log2("Calling HS /confirm with body", body) intent( ~bodyArr=body, ~confirmParam={ @@ -92,23 +90,16 @@ let default = (props: props) => { ~handleUserError=true, (), ) - Js.log("Called HS /confirm") } React.useEffect0(() => { - Js.log("ENTERED EFFECT") let handle = (ev: Window.event) => { - Js.log("INSIDE Gpay Handle") let json = ev.data->Js.Json.parseExn let dict = json->Utils.getDictFromJson if dict->Js.Dict.get("gpayResponse")->Belt.Option.isSome { - Js.log2("INSIDE Gpay response -dict", dict) let metadata = dict->getJsonObjectFromDict("gpayResponse") - Js.log2("INSIDE Gpay response -metadata", metadata) let obj = metadata->getDictFromJson->itemToObjMapper - Js.log2("INSIDE Gpay response -objmapper", obj) let body = PaymentBody.gpayBody(~payObj=obj, ~connectors) - Js.log2("INSIDE Calling processPayment", body) processPayment(body) } } @@ -201,11 +192,12 @@ let default = (props: props) => { ~value=paymentDataRequest->toJson->Js.Json.stringify, (), ) - options.readOnly ? () : Js.log("INSIDE Iframe Gpay button clicked") - handlePostMessage([ - ("GpayClicked", true->Js.Json.boolean), - ("gpayPaymentRequestData", paymentDataRequest->toJson), - ]) + options.readOnly + ? () + : handlePostMessage([ + ("GpayClicked", true->Js.Json.boolean), + ("gpayPaymentRequestData", paymentDataRequest->toJson), + ]) // paymentsClient.loadPaymentData(. paymentDataRequest) // ->then(data => { // loggerState.setLogInfo( diff --git a/src/orca-loader/Elements.res b/src/orca-loader/Elements.res index d5a96be03..e7f1d9a39 100644 --- a/src/orca-loader/Elements.res +++ b/src/orca-loader/Elements.res @@ -343,14 +343,6 @@ let make = ( let gpayPaymentRequestData = json->OrcaUtils.getOptionalJsonFromJson("gpayPaymentRequestData") if gpayClicked { - Js.log2( - "OUTSIDE Iframe Gpay Client payload", - { - "environment": publishableKey->Js.String2.startsWith("pk_prd_") - ? "PRODUCTION" - : "TEST", - }->toJson, - ) let gPayClient = GooglePayType.google( { "environment": publishableKey->Js.String2.startsWith("pk_prd_") @@ -362,11 +354,9 @@ let make = ( | Some(json) => json | None => Js.Dict.empty()->Js.Json.object_ } - Js.log2("OUTSIDE Iframe calling gpay -paylaod", data) try { gPayClient.loadPaymentData(. data) ->then(json => { - Js.log2("OUTSIDE Iframe gpay called -response", json) logger.setLogInfo( ~value=json->toJson->Js.Json.stringify, ~eventName=GOOGLE_PAY_FLOW, @@ -379,7 +369,6 @@ let make = ( resolve() }) ->catch(err => { - Js.log2("OUTSIDE Iframe Gpay called -error", err) logger.setLogInfo( ~value=err->toJson->Js.Json.stringify, ~eventName=GOOGLE_PAY_FLOW, @@ -394,7 +383,6 @@ let make = ( ->ignore } catch { | err => { - Js.log2("OUTSIDE Iframe calling Gpay -error", err->toJson) logger.setLogInfo( ~value=err->toJson->Js.Json.stringify, ~eventName=GOOGLE_PAY_FLOW, diff --git a/src/orca-loader/LoaderPaymentElement.res b/src/orca-loader/LoaderPaymentElement.res index 66602a5ee..008ae7b5d 100644 --- a/src/orca-loader/LoaderPaymentElement.res +++ b/src/orca-loader/LoaderPaymentElement.res @@ -276,9 +276,7 @@ let make = (componentType, options, setIframeRef, iframeRef, mountPostMessage) = let handleFullScreenCallback = (ev: Types.event) => { let json = ev.data->eventToJson let dict = json->Utils.getDictFromJson - Js.log("iframemounted callback outside") if dict->Js.Dict.get("iframeMountedCallback")->Belt.Option.isSome { - Js.log("iframemounted callback inside") let fullScreenEle = Window.querySelector(`#orca-fullscreen`) fullScreenEle->Window.iframePostMessage( [