sessionToken | Yes | String | Token generated by the Onramp Session Token API. |
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, CAD, GBP, EUR only). Ignored if presetCryptoAmount is also set. |
defaultExperience | No | ’send’, ‘buy’ | Default visual experience: either (1) Transfer funds from Coinbase (‘send’) or (2) Buy assets (‘buy’) |
defaultPaymentMethod | No | String | Default payment method used to purchase the asset |
fiatCurrency | No | String | e.g: USD, CAD, GBP, etc. |
handlingRequestedUrls | No | Boolean | Prevents the widget from opening URLs directly & relies on onRequestedUrl entirely for opening links |
partnerUserRef | No | String | Unique ID representing the end-user. Must be less than 50 chars. Use with the Transaction Status API to retrieve transactions made during the session. |
redirectUrl | No | String | URL to redirect the user to when they successfully complete a transaction. |