Field | Input value |
---|---|
Phone number | Any valid US 10-digit phone number e.g. (212) 123-1234. Note: you will not receive a text message if you use a real phone number. |
Any valid email string e.g. john.doe@gmail.com | |
Name on card | Any first and last name e.g. John Doe |
Card number | 4242 4242 4242 4242 to simulate a successful transaction. Any other 16-digit card number to simulate a declined transaction. |
Expiry date | Any valid expiry date e.g. 12/31 |
CVC | Any 3-digit CVC e.g. 123 |
Billing address | Any valid US address (you can start typing for suggestions). e.g. 123 Market Street, San Francisco, CA 94105 |
Parameter | Required | Type | Description |
---|---|---|---|
sessionToken | Yes | String | Token generated by the Onramp Session Token API. |
assets | No | String[] | List of assets that will be available for the user to buy/send. e.g. [“ETH”, “USDC”] or UUIDs retrieved from the Buy Options API. This optional parameter acts as a filter on the addresses parameter. If it is included then only the assets in this list that are available on one of the supported blockchains in the Addresses list will be available to the user. See the See the Buy Options API for the full list of assets. |
defaultNetwork | No | String | Default network that should be selected when multiple networks are present |
defaultAsset | No | String | Default asset that should be selected when multiple assets are present |
presetCryptoAmount | No | Number | Preset crypto amount value |
presetFiatAmount | No | Number | Preset fiat amount value (for USD only in sandbox). Ignored if presetCryptoAmount is also set. |