Cannot use walletplugin

When I browsed the wallet service histories in this community, i found this seems like very lasting bugs for months:

Error: WalletServicesPluginError: Web3Auth is not connected

Here the lines and where error occurs:

The error is thrown when calling any “serviceWallet” method, such as “showWalletUi(), showCheckout()” and others. Anywhere in the code, for example, here is a function to call:

const showCheckout = async () => {
if (!walletServicesPlugin) {
console.log(‘Error’);
return;
}
console.log(web3auth?.connected);
await walletServicesPlugin.showCheckout();
};

It is strange that at the same time “console.log(web3auth?.connected);” outputs the result “true”

we are on sepolia and SAPPHIRE_DEVNET. Is that because we need upgrade to enterprise mode to use wallet service, even though we are currently at the development stage?

Hey @czk6kun6, no you don’t need enterprise plan to do testing in the development stage. Does the error is shown every time? The error is saying that plugin is not connected to the Web3Auth.

Please call showCheckout after listening to connected event on wallet services plugin

plugin.on("connected", () => plugin.showCheckout());

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.