kolirt / vue-web3-auth

💎 Web3 authentication for Vue3 apps based on WalletConnect Web3Modal v2 and wagmi
https://kolirt.github.io/vue-web3-auth/
MIT License
34 stars 8 forks source link

[Question]: Process of getting payment through this library? #13

Closed AHMAD1812 closed 9 months ago

AHMAD1812 commented 9 months ago

Description

I'm just reading documentation and stuck to get my web3 application take payment from user, I've connected wallet into the application but now I just want to take payment from it? If you have any code related to this, It will be of great help.

I'm new on web3 so Thank in advance for help.

AHMAD1812 commented 9 months ago

When I'm using writecontract function, I'm getting this error:

Uncaught (in promise) SwitchChainError: An error occurred when attempting to switch chain.

Details: Cannot set properties of undefined (setting 'defaultChain')

kolirt commented 9 months ago

When I'm using writecontract function, I'm getting this error:

Uncaught (in promise) SwitchChainError: An error occurred when attempting to switch chain.

Details: Cannot set properties of undefined (setting 'defaultChain')

Have you configured the package?

Configuration

kolirt commented 9 months ago

I'm just reading documentation and stuck to get my web3 application take payment from user, I've connected wallet into the application but now I just want to take payment from it? If you have any code related to this, It will be of great help.

The purpose of this package is to make it easier to access web3 for vue. The payment function is not the direct responsibility of this package, you need to develop this functionality yourself using the available functionality of this package