Skip to content

Commit

Permalink
refactor: stringify json for block confirm body and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sakksham7 committed Nov 14, 2024
1 parent ece9689 commit 19d45f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Utilities/PaymentHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
(
Expand Down

0 comments on commit 19d45f1

Please sign in to comment.