@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.mjs CHANGED
@@ -3020,7 +3020,6 @@ function FloPayCheckout({
3020
3020
  cancelUrl: params?.cancelUrl,
3021
3021
  i: params?.items?.map((x) => `${x.providerItemId}:${x.totalAmount}:${x.overrideAmount ?? ""}:${x.quantity ?? 1}`).sort(),
3022
3022
  s: params?.subscriptions?.map((x) => `${x.providerPlanId}:${x.totalAmount}:${x.overrideAmount ?? ""}:${x.quantity ?? 1}`).sort(),
3023
- account: params?.account,
3024
3023
  couponCodes: params?.couponCodes,
3025
3024
  tagsData: params?.tagsData,
3026
3025
  utmMetadata: params?.utmMetadata,
@@ -3178,7 +3177,8 @@ function FloPayCheckout({
3178
3177
  };
3179
3178
  }
3180
3179
  (async () => {
3181
- const shouldAutoProcessInlineSession = effectiveCreateSessionMode === "auto" && !autoCheckoutAttempted.current;
3180
+ const hasPayPalRedirectParams = typeof window !== "undefined" && new URLSearchParams(window.location.search).has("payment_intent");
3181
+ const shouldAutoProcessInlineSession = effectiveCreateSessionMode === "auto" && !autoCheckoutAttempted.current && !hasPayPalRedirectParams;
3182
3182
  if (shouldAutoProcessInlineSession) {
3183
3183
  setModeError(null);
3184
3184
  setModeOverlayError(null);