Overview
Magic offers fiat on-ramp functionality in our wallet widget UI, allowing US and international users to purchase crypto through multiple payment options, including instant ACH, credit card, debit card, Apple Pay, Google Pay, and SEPA transfer. Fiat on-ramp is only supported on Ethereum and Polygon networks.
Compatibility
- Stripe is the default on-ramp provider and is the only service compatible. To get access to alternative providers, reach out to sales.
- Fiat on-ramp functionality is available via the widget UI using the following client-side SDKs:
Use Cases
- Allow users to purchase cryptocurrencies via our on-ramp partners through the wallet widget UI
- Prompt users to top-up their wallet’s token balance if they do not have enough to complete a certain on-chain transaction
Usage
How do I allow users to purchase cryptocurrencies through the wallet widget UI? Once you have verified the correct setup of the Magic SDK and successfully authenticated the user, the wallet widget can then be displayed in an iframe by calling theshowUI
function:
JavaScript
sendTransaction()
function. This allows users to top-up their wallet’s if their token balance is insufficient to complete the on-chain transaction.
