Sandbox Mode

Note: This endpoint is for development and testing purposes only, please do not send any funds when using this endpoint.

Sandbox details

  • The sandbox environment aims to recreate product flow as close to the production as possible, currently only USDT-MATIC20 is supported on polygon mumbai testnet.

  • appId needs to be set to 2, as it the official test app Id.

Simple Integration

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

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

Parameters customisation

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

For example, let's set a walletAddress param so that it'll be pre-filled for the user, for detailed customisation refer to the block below.

pageHosted Mode

Customisation options via query params

GET https://onramp.money/app/?appId=2

User is redirected to the onramp site, will configs set in query params.

Path Parameters

NameTypeDescription

coinAmount

10

amount denoted in the native coin/token.

either coinAmount or fiatAmount, can be passed. When passed both coinAmount takes precedence

network

matic20

supported networks by onramp for onchain transactions current supported networks: usdt - matic20 (Mumbai testnet)

fiatAmount

1000

amount denoted in fiat amount. (only ₹ INR is currently supported)

coinCode

usdt

Name of the coin (also denoted as key in data.allCoinConfig in the response returned in the allConfig endpoint) current supported coins:

usdt

appId*

2

App Id of the merchant/Partner

walletAddress

0x7c8D..596

Onchain wallet address to which the crypto will be withdrawn to.

merchantRecognitionId

13422

Specific string that can be passed by the merchant/Partner at the time of making the request, this would reflect via update from webhook.

{
    // Response
}

Last updated