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 ad07400 commit ecb7440
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 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
6 changes: 3 additions & 3 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ let backendEndPoint;
if (envBackendUrl === undefined) {
backendEndPoint =
sdkEnv === "prod"
? "https://api.hyperswitch.io"
? "https://checkout.hyperswitch.io/api"
: sdkEnv === "sandbox"
? "https://sandbox.hyperswitch.io"
? "https://beta.hyperswitch.io/api"
: sdkEnv === "integ"
? "https://integ-api.hyperswitch.io"
: "https://sandbox.hyperswitch.io";
: "https://beta.hyperswitch.io/api";
} else {
backendEndPoint = envBackendUrl;
}
Expand Down

0 comments on commit ecb7440

Please sign in to comment.