Onramper
Enable Token Purchases via Fiat Currency
Launching the ORE ID Onramper Flow
Our recommended method for activating the Onramper flow is to leverage the OREID's Javascript SDK. This includes both the OREID-js and oreid-webpopup
packages. You may install both of these using your package manager of choice.
Initialize OREID
Before we can call the popup, we'll need to initialize the OREID connection.
User Login
Next, the user will need to be logged into their OREID account. This can also be done using the OREID Web popup.
Activate Web Popup
Finally, you can activate Onramper using the buy function of the popup. Here, you'll also be able to enter parameters that will dictate which currencies and networks are available to the user.
Parameters
The params to use the buy function of OREID-JS are as follows:
chainAccount
The blockchain account that will receive the purchased tokens. This provided account must belong to the user that is currently logged in. If it doesn't, the popup will fail to active and the function will return an error.
This is a required field.
chainNetwork
The blockchain network that the tokens will be purchased on. The available options can be found on the Chain Mappings page.
This is a required field.
The selection must be a network that the app currently has access to or the popup will fail to activate. If additional access rights are needed, please contact your account manager.
limitToSymbols
An optional array of token symbols that the user can select from. If this is not provided, the user will be able to select from all supported tokens.
The allowed values for limitToSymbols
are NOT the same as those in the onRamper docs - they are mapped. These mappings can be found on the Chain Mappings page.
If the transaction is properly configured, you should see the Onramper flow initiate with the desired network and currency automatically selected.
Do not complete the buy action if you are running on a test chain. The purchase will be mapped to the main chain. You will not be able to recover the tokens
Onramper Tokens
The Onramper integration supports the purchase of the following tokens:
Last updated