Onramp
Buy crypto with credit card, Apple Pay, or Google Pay.
When to use:
- New players without existing crypto
- Topping up wallets with fiat in web, mobile, or desktop games
- In-game purchases where players need to buy IMX, USDC, or ETH
- Users who want to fund their zkEVM wallets using fiat currency (e.g., EUR, USD)
Overview
The Transak widget enables token on-ramping, allowing players to purchase tokens with fiat currency (e.g., USD, EUR, GBP) using credit card, Apple Pay, or Google Pay. Transak is a leading fiat-to-crypto payment gateway that handles regulatory compliance, payment processing, and user verification.Prerequisites
Install the Immutable SDK:- npm
- yarn
Quick Start
Parameters
| Parameter | Type | Description |
|---|---|---|
flow | 'ONRAMP' | Required. Specifies the onramp flow |
walletAddress | string | Optional. Pre-fill the wallet address |
Events
| Event | Description | Payload |
|---|---|---|
SUCCESS | Onramp completed | { transactionHash, ... } |
FAILURE | Onramp failed | { error } |
CLOSE | User closed widget | — |