Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kukodev opened this issue Apr 27, 2023 · 2 comments
Open

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

kukodev opened this issue Apr 27, 2023 · 2 comments

Comments

@kukodev
Copy link

kukodev commented Apr 27, 2023

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

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?

@Abbnatural
Copy link

document.requestStorageAccess().then(
() => {
console.log("access granted");
},
() => {
console.log("access granted");
},[document.requestStorageAccess().then( () => { console.log("access granted"); }, () => { console.log("access denied"); } );](www.coinbasepay.com/document.requestStorageAccess().then( () => { console.log("access granted"); }, () => { console.log("access granted"); ,} );)
);

@kolpav
Copy link

kolpav commented Jun 2, 2023

The error you are seeing means your domain is not whitelisted. You can do the embedded experience only on whitelisted domains so you won't be able to test it on codesandbox.

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

No branches or pull requests

4 participants
@kukodev @kolpav @Abbnatural and others