Skip to content

Commit

Permalink
fix: reverted only confirm endpoint on webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrishab Srivatsa committed Apr 30, 2024
1 parent 6abaaa5 commit 3b45aaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/orca-loader/Elements.res
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ type trustPayFunctions = {
executeGooglePayment: (string, GooglePayType.paymentDataRequest) => Promise.t<JSON.t>,
}
@new external trustPayApi: JSON.t => trustPayFunctions = "TrustPayApi"
@val @scope("window")
external alert: 't => unit = "alert"

let make = (
options,
Expand Down Expand Up @@ -454,9 +452,6 @@ let make = (
switch dict->Dict.get("applePayButtonClicked") {
| Some(val) =>
if val->JSON.Decode.bool->Belt.Option.getWithDefault(false) {
alert(event)
alert("event.isTrusted handleApplePayThirdPartyFlow")
alert(event.isTrusted)
let applePaySessionTokenData =
dict
->Dict.get("applePayPresent")
Expand Down
2 changes: 1 addition & 1 deletion src/orca-loader/Types.res
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type eventData = {
confirmTriggered: bool,
oneClickConfirmTriggered: bool,
}
type event = {key: string, data: eventData, isTrusted: bool}
type event = {key: string, data: eventData}
type eventParam = Event(event) | EventData(eventData) | Empty
type eventHandler = option<JSON.t> => unit
@send external onload: (Dom.element, unit => Promise.t<'a>) => Promise.t<'a> = "onload"
Expand Down

0 comments on commit 3b45aaf

Please sign in to comment.