fix(payments): resolve Android Guest Checkout hang using redirect fallback and visibility polling#890
Conversation
…lback and visibility polling
|
|
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. |
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.