Skip to content

feat: replace coinbase popup embed with success redirect page#2446

Closed
broody wants to merge 1 commit intomainfrom
feat/coinbase-success-redirect
Closed

feat: replace coinbase popup embed with success redirect page#2446
broody wants to merge 1 commit intomainfrom
feat/coinbase-success-redirect

Conversation

@broody
Copy link
Contributor

@broody broody commented Feb 25, 2026

Summary

Reverts the iframe-embed approach in the popup and instead opens the raw Coinbase paymentLink directly. Coinbase now includes a redirectUrl that points to /coinbase/success on the keychain, which shows a success confirmation and auto-closes the popup.

Changes

  • Removed coinbase-popup.tsx (iframe embed + in-popup polling)
  • Added coinbase-success.tsx — simple page at /coinbase/success that:
    • Shows a ✓ "Payment Successful" message
    • Auto-closes the popup after 2 seconds
  • Reverted openPaymentPopup to open the raw paymentLink directly
  • Keychain-side polling via GraphQL continues to independently track order status

Flow

  1. User clicks Apple Pay → popup opens with Coinbase payment link directly
  2. User completes payment on Coinbase
  3. Coinbase redirects to https://x.cartridge.gg/coinbase/success
  4. Success page shows confirmation and auto-closes
  5. Meanwhile, keychain has been polling and detects completion to proceed with the on-chain purchase

Revert to opening the raw Coinbase paymentLink directly in the popup.
Coinbase now includes a redirectUrl pointing to /coinbase/success,
which shows a success confirmation and auto-closes the popup.

- Remove coinbase-popup.tsx (iframe embed + polling approach)
- Add coinbase-success.tsx (simple success page at /coinbase/success)
- Revert openPaymentPopup to open paymentLink directly
- Keychain still polls order status independently via GraphQL
@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
controller-example-next Building Building Preview Feb 25, 2026 9:40pm
keychain Building Building Preview Feb 25, 2026 9:40pm
keychain-storybook Building Building Preview Feb 25, 2026 9:40pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant