Sandbox Mode

Note: This endpoint is solely for development and testing purposes. Please refrain from sending any actual funds when using this endpoint.

Sandbox Environment Details

  • The sandbox environment is designed to closely emulate the product flow of the production environment. It currently only supports USDT-MATIC20 on the Polygon Mumbai testnet.

  • The appId must be set to 2, as this is the official test app Id.

Simple Integration

Integrating in the hosted mode is very straightforward. All you need to do is redirect to Onramp (link below). This method works equally well on both desktop and mobile. Simply add a link to your application to enable this redirection.

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.

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

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

Path Parameters

NameTypeDescription

appId*

2

App Id of the merchant/Partner* *Sandbox appId in this case

merchantRecognitionId

13342

Specific string that can be passed by the merchant/Partner at the time of making the request.

fiatAmount

100

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

coinAmount

10

amount denoted in the native coin/token.

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

walletAddress

0x7c8D..596

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

network

matic20

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

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

Last updated