[Coinbase Pay SDK] experience always defaults to "new_tab"
- Dominant language
- TypeScript
- Stars
- 355
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I've integrated Coinbase Pay SDK/Plugin according to: https://docs.cloud.coinbase.com/pay-sdk/docs/integrating-pay
You can find minimal example here (insert your own "appId" key): https://codesandbox.io/s/cbpay-simple-vwb8jk
The library initializes but with following error:

It does not crash the widget but I guess thats the reason why experience is always opening in new tab. No popup or embedded option is considered. Also no "onSuccess", "onExit" and "onEvent" callbacks will be called.
Im wondering, could that be related to "appId" being bound to specific domain only?
Can you assist?
Contributor guide
Research direction
Reproduce the issue using the linked integration guide and minimal CodeSandbox, starting at SDK initialization with the appId and experience settings. Check why the widget falls back to new_tab and whether onSuccess, onExit, and onEvent are reached; done means identifying the cause and confirming the expected experience and callback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100