It looks like XDCPay is injecting into window.web3. It should also inject into window.ethereum and update the new Provider's API to keep up to date with the latest Metamask version.
Here are all the breaking changes Metamask made for the new provider API: https://docs.metamask.io/guide/provider-migration.html
It looks like XDCPay is injecting into window.web3. It should also inject into window.ethereum and update the new Provider's API to keep up to date with the latest Metamask version.
Here are all the breaking changes Metamask made for the new provider API: https://docs.metamask.io/guide/provider-migration.html