Skip to content

fix(payments): resolve Android Guest Checkout hang using redirect fallback and visibility polling#890

Open
grharsha777 wants to merge 2 commits into
paypal:mainfrom
grharsha777:fix/paypal-android-hang-recovery
Open

fix(payments): resolve Android Guest Checkout hang using redirect fallback and visibility polling#890
grharsha777 wants to merge 2 commits into
paypal:mainfrom
grharsha777:fix/paypal-android-hang-recovery

Conversation

@grharsha777

Copy link
Copy Markdown

Addresses the "ghost popup" bug on Android by implementing a resilience layer for PayPal Subscriptions.

Key Features
Redirect Fallback: Automatically switches to full-page redirect on Android/WebView to bypass unreliable iframe communication.
Watchdog Polling: New useSubscriptionWatchdog hook polls the backend for ACTIVE status via visibilitychange events and failsafe timers.
Drop-in Component: PayPalSubscriptionButtons provides a resilient replacement for without breaking existing prop contracts.
Verification
32 Tests Passed: Comprehensive coverage for all recovery scenarios.
Storybook Ready: New documentation story added for Android Resilience.
Enterprise Grade: Full TypeScript compliance and clean ESLint status.

@grharsha777
grharsha777 requested a review from a team as a code owner April 19, 2026 15:08
@changeset-bot

changeset-bot Bot commented Apr 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a54f116

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions Bot added the Stale label Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant