@flopay/react 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3057,7 +3057,6 @@ function FloPayCheckout({
|
|
|
3057
3057
|
cancelUrl: params?.cancelUrl,
|
|
3058
3058
|
i: params?.items?.map((x) => `${x.providerItemId}:${x.totalAmount}:${x.overrideAmount ?? ""}:${x.quantity ?? 1}`).sort(),
|
|
3059
3059
|
s: params?.subscriptions?.map((x) => `${x.providerPlanId}:${x.totalAmount}:${x.overrideAmount ?? ""}:${x.quantity ?? 1}`).sort(),
|
|
3060
|
-
account: params?.account,
|
|
3061
3060
|
couponCodes: params?.couponCodes,
|
|
3062
3061
|
tagsData: params?.tagsData,
|
|
3063
3062
|
utmMetadata: params?.utmMetadata,
|
|
@@ -3215,7 +3214,8 @@ function FloPayCheckout({
|
|
|
3215
3214
|
};
|
|
3216
3215
|
}
|
|
3217
3216
|
(async () => {
|
|
3218
|
-
const
|
|
3217
|
+
const hasPayPalRedirectParams = typeof window !== "undefined" && new URLSearchParams(window.location.search).has("payment_intent");
|
|
3218
|
+
const shouldAutoProcessInlineSession = effectiveCreateSessionMode === "auto" && !autoCheckoutAttempted.current && !hasPayPalRedirectParams;
|
|
3219
3219
|
if (shouldAutoProcessInlineSession) {
|
|
3220
3220
|
setModeError(null);
|
|
3221
3221
|
setModeOverlayError(null);
|