Skip to content

Commit

Permalink
fix: move applepay thirdparty event listeners outside (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrivatsa-edinburgh authored Apr 29, 2024
1 parent 95451bd commit c08ec25
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 212 deletions.
7 changes: 0 additions & 7 deletions src/Payments/ApplePay.res
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,6 @@ let make = (
let bodyDict = PaymentBody.applePayRedirectBody(~connectors)
processPayment(bodyDict)
}
let value = "Payment Data Filled: New Payment Method"
loggerState.setLogInfo(
~value,
~eventName=PAYMENT_DATA_FILLED,
~paymentMethod="APPLE_PAY",
(),
)
} else {
setApplePayClicked(_ => false)
}
Expand Down
7 changes: 0 additions & 7 deletions src/Payments/GPay.res
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,6 @@ let make = (
makeOneClickHandlerPromise(sdkHandleOneClickConfirmPayment)->then(result => {
let result = result->JSON.Decode.bool->Option.getOr(false)
if result {
let value = "Payment Data Filled: New Payment Method"
loggerState.setLogInfo(
~value,
~eventName=PAYMENT_DATA_FILLED,
~paymentMethod="GOOGLE_PAY",
(),
)
if isInvokeSDKFlow {
if isDelayedSessionToken {
handlePostMessage([
Expand Down
Loading

0 comments on commit c08ec25

Please sign in to comment.