String.length > 0 ||
- cvcError->String.length > 0 ||
- expiryError->String.length > 0}>
+ condition={innerLayout === Compressed &&
+ (cardError->String.length > 0 ||
+ cvcError->String.length > 0 ||
+ expiryError->String.length > 0)}>
,
~analyticsMetadata,
+ ~customBackendUrl,
) => {
let applePaySessionRef = ref(Nullable.null)
-
try {
let iframeRef = []
let logger = logger->Option.getOr(OrcaLogger.defaultLoggerConfig)
@@ -297,6 +297,7 @@ let make = (
("parentURL", "*"->JSON.Encode.string),
("analyticsMetadata", analyticsMetadata),
("launchTime", launchTime->JSON.Encode.float),
+ ("customBackendUrlVal", customBackendUrl->JSON.Encode.string),
]->Dict.fromArray
let wallets = PaymentType.getWallets(newOptions->getDictFromJson, "wallets", logger)
diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res
index 35569eeda..fb39f0356 100644
--- a/src/orca-loader/Hyper.res
+++ b/src/orca-loader/Hyper.res
@@ -415,6 +415,10 @@ let make = (publishableKey, options: option, analyticsInfo: optionOption.getOr(JSON.Encode.null)
+ ->getDictFromJson
+ ->getString("customBackendUrl", ""),
)
}
let confirmCardPaymentFn = (
From 381615e82028f6519ccf767a116aa2df122fcfb5 Mon Sep 17 00:00:00 2001
From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com>
Date: Thu, 9 May 2024 14:32:03 +0530
Subject: [PATCH 5/7] refactor: src/orca-loader/Elements.res
---
src/orca-loader/Elements.res | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/orca-loader/Elements.res b/src/orca-loader/Elements.res
index 6fc6fe66a..96ba341e2 100644
--- a/src/orca-loader/Elements.res
+++ b/src/orca-loader/Elements.res
@@ -297,7 +297,7 @@ let make = (
("parentURL", "*"->JSON.Encode.string),
("analyticsMetadata", analyticsMetadata),
("launchTime", launchTime->JSON.Encode.float),
- ("customBackendUrlVal", customBackendUrl->JSON.Encode.string),
+ ("customBackendUrl", customBackendUrl->JSON.Encode.string),
]->Dict.fromArray
let wallets = PaymentType.getWallets(newOptions->getDictFromJson, "wallets", logger)
From 86c098fcc27265cb609476bf9f41e677d4fe1189 Mon Sep 17 00:00:00 2001
From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com>
Date: Thu, 9 May 2024 14:32:11 +0530
Subject: [PATCH 6/7] refactor: src/orca-loader/Elements.res
---
src/LoaderController.res | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/LoaderController.res b/src/LoaderController.res
index 30553b27f..2fbd578f9 100644
--- a/src/LoaderController.res
+++ b/src/LoaderController.res
@@ -362,7 +362,7 @@ let make = (~children, ~paymentMode, ~setIntegrateErrorError, ~logger, ~initTime
if (
dict->getDictIsSome("customBackendUrlVal") &&
dict
- ->getString("customBackendUrlVal", "")
+ ->getString("customBackendUrl", "")
->String.length > 0
) {
if dict->getDictIsSome("endpoint") {
From 7f06b283c59ee81025e29a039710ce329bfe29fa Mon Sep 17 00:00:00 2001
From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com>
Date: Thu, 9 May 2024 14:32:18 +0530
Subject: [PATCH 7/7] refactor: src/orca-loader/Elements.res
---
src/LoaderController.res | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/LoaderController.res b/src/LoaderController.res
index 2fbd578f9..3146e791b 100644
--- a/src/LoaderController.res
+++ b/src/LoaderController.res
@@ -360,7 +360,7 @@ let make = (~children, ~paymentMode, ~setIntegrateErrorError, ~logger, ~initTime
)
}
if (
- dict->getDictIsSome("customBackendUrlVal") &&
+ dict->getDictIsSome("customBackendUrl") &&
dict
->getString("customBackendUrl", "")
->String.length > 0