Onramper
Etherspot have partnered with Onramper to provide a seamless fiat onramp experience for both dapp developers and users.Onramper Docs
Using the SDK, developers can easily call a function which will open
the Onramper widget with all the values the user wishes. These include
things such as the address of the smart contract account, the type of fiat
they want to onramp from, the amount, and the type of crypto they wish to purchase.
With the Etherspot SDK instantiated, you can simply call:
Optional Parameters
So now we can tailor the widget specifically to what the dev wants their user to purchase.
In this example we want USD to show as the fiat.
We only want ETH to show as the crypto to buy.
We don’t want to make the amount configurable.
We don’t want the amount to be editable.
We can put together the function like this:

