Onramper fiat plugin error

      I have called this function throwing error =>Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'fiat')

await Moralis.Plugins.fiat.buy({ coin: β€˜eth’, receiver: add }, { disableTriggers: true });

Did you install onramp plugin on your server?

if yes, make sure to call this function only when moralis is initialized.

@NetsetDev, you don’t have to use the onramp plugin, you can find here alternatives:
https://v1docs.moralis.io/moralis-dapp/plugins/api#fiat-onramp

1 Like