Skip to content

Commit

Permalink
fix: apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrivatsa-edinburgh authored May 13, 2024
1 parent 2c7dd38 commit 9f3d414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utilities/PaymentHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ let usePaymentIntent = (optLogger, paymentType) => {
let uri = `${endpoint}/payments/${paymentIntentID}/confirm`

let callIntent = body => {
let contentLength = body->String.length
let contentLength = body->String.length->Int.toString
let maskedPayload =
body->safeParseOpt->Option.getOr(JSON.Encode.null)->maskPayload->JSON.stringify
let loggerPayload =
Expand All @@ -973,7 +973,7 @@ let usePaymentIntent = (optLogger, paymentType) => {
handleLogging(
~optLogger,
~internalMetadata=loggerPayload,
~value=contentLength->Int.toString,
~value=contentLength,
~eventName=PAYMENT_ATTEMPT,
~paymentMethod="CARD",
(),
Expand All @@ -983,7 +983,7 @@ let usePaymentIntent = (optLogger, paymentType) => {
if str === "payment_method_type" {
handleLogging(
~optLogger,
~value=contentLength->Int.toString,
~value=contentLength,
~internalMetadata=loggerPayload,
~eventName=PAYMENT_ATTEMPT,
~paymentMethod=json->getStringFromJson(""),
Expand Down

0 comments on commit 9f3d414

Please sign in to comment.