From 19d45f13b6d077dea669650fffc9d9ebd90ec7d4 Mon Sep 17 00:00:00 2001 From: Saksham Sharma Date: Thu, 14 Nov 2024 16:44:13 +0530 Subject: [PATCH] refactor: stringify json for block confirm body and headers --- src/Utilities/PaymentHelpers.res | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Utilities/PaymentHelpers.res b/src/Utilities/PaymentHelpers.res index bd77583d..39fb85d2 100644 --- a/src/Utilities/PaymentHelpers.res +++ b/src/Utilities/PaymentHelpers.res @@ -1060,7 +1060,11 @@ let usePaymentIntent = (optLogger, paymentType) => { }) } if blockConfirm && Window.isInteg { - Console.log3("CONFIRM IS BLOCKED", body->safeParse, headers) + Console.log2("CONFIRM IS BLOCKED - Body", body) + Console.log2( + "CONFIRM IS BLOCKED - Headers", + headers->Dict.fromArray->Identity.anyTypeToJson->JSON.stringify, + ) } else { intentCall( ~fetchApi, @@ -2098,7 +2102,9 @@ let usePostSessionTokens = ( let customPodUri = Recoil.useRecoilValueFromAtom(customPodUri) let paymentMethodList = Recoil.useRecoilValueFromAtom(paymentMethodList) let keys = Recoil.useRecoilValueFromAtom(keys) - let shouldUseTopRedirection = Recoil.useRecoilValueFromAtom(RecoilAtoms.shouldUseTopRedirectionAtom) + let shouldUseTopRedirection = Recoil.useRecoilValueFromAtom( + RecoilAtoms.shouldUseTopRedirectionAtom, + ) let setIsManualRetryEnabled = Recoil.useSetRecoilState(isManualRetryEnabled) (