Hosted Mode

The hosted mode is the quickest method to add offramp support to your app.

Offramp integration

simple integration(offramp)

Integrating in hosted mode is pretty straight forward, the only thing you would need to do is redirect your user to offramp (link below), this would work for both on desktop and mobile, just add a link to your app.

https://onramp.money/main/sell/?appId=1

Note:

  • Supported Currencies: To view the list of all the fiat currencies supported by Onramp, click here.

  • Supported Payment Methods: To view the list of all the supported payment methods for various currencies supported by Onramp, click here.

Customisation(offramp)

If you want to set some custom options for your integration, just add them as query parameters to the URL.

For example, we can pre-fill the network, coinAmount etc so the user flow can be enhanced and seamless overall, for detailed customisation refer to the block below.

customisation options via query params

GET https://onramp.money/main/sell/?appId=1

User is redirected to the offramp page, with configs set in query params.

Path Parameters

{
    // Response
}

Note: After generating the token and initiating the order, Onramp.money will send a request to initiate the on-chain withdrawal to the destination address on behalf of the user.

The Onramp widget URL allows the inclusion of a redirectUrl parameter. Upon completion of a purchase, Onramp will redirect the user to the specified URL using this parameter. This feature can be utilised by your application to detect the completion of a transaction and execute subsequent actions, such as providing the user with purchase status notifications.

if your app name is onramp-example, and the parameter is set to redirectUrl = http://onramp-example.com

the redirect would be as the following

//after successful transaction
http://onramp-example.com?orderId=123&status=success

//incase transaction is pending
http://onramp-example.com?orderId=123&status=pending

Last updated