coinbase / coinbase/cbpay-js

[Coinbase Pay SDK] experience always defaults to "new_tab"

Open
#123 2 comments 0 reactions 0 assignees View on GitHub
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:

![image](https://user-images.githubusercontent.com/12159534/234848753-ada1477a-3454-49d1-ba9b-5734abe122be.png)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.