Fiat Parameters

There are several optional filtering mechanisms available to limit the available fiat currencies in the Onramper widget.

Onramp

OptionTypeDescription
defaultAmountnumberDefault fiat amount to display when the widget loads (must be used with defaultFiat)
defaultFiatstringDefault fiat currency to display when the widget loads
isAmountEditablebooleanParameter to prevent the amount from being changed by the end-user
onlyFiatsstringSelect the specific fiat currencies to display
excludeFiatsstringSelect the specific fiat currencies to exclude

defaultFiat | defaultAmount

The default behavior of the Onramper Widget utilizes country detection to automatically recommend the local fiat currency and fiat amount for each individual end-user.

This behavior can be customized by supplying the defaultFiat and defaultAmount parameters by adding it to your integration URL.

The defaultFiat can be supplied by itself, however the defaultAmount requires defaultFiat to also be added.

https://buy.onramper.com/?defaultAmount=5000&defaultFiat=PHP

onlyFiats | excludeFiats

The default behavior of the Onramper Widget is to show all available fiat currencies based on available Onramps and Payment Methods for each individual end-user.

This behavior can be customized by adding the excludeFiats parameter to exclude specific fiat currencies.

https://buy.onramper.com/?excludeFiats=USD,EUR

By utilizing the onlyFiats parameter you can select the specific fiat currencies to display in the Onramper Widget.

https://buy.onramper.com/?onlyFiats=USD

Offramp

OptionTypeDescription
sell_defaultAmountnumberDefault crypto amount to display when the widget loads (must be used with sell_defaultCrypto)
sell_defaultFiatstringDefault fiat currency to display when the widget loads
sell_isAmountEditablebooleanParameter to prevent the amount from being changed by the end-user
sell_onlyFiatsstringSelect the specific fiat currencies to display
sell_excludeFiatsstringSelect the specific fiat currencies to exclude

sell_defaultFiat | sell_defaultAmount

The default behavior of the Onramper Widget utilizes country detection to automatically recommend the local fiat currency and fiat amount for each individual end-user.

This behavior can be customized by supplying the sell_defaultFiat and sell_defaultAmount parameters by adding it to your integration URL.

The sell_defaultFiat can be supplied by itself, however the sell_defaultAmount requires sell_defaultCrypto to also be added.

https://buy.onramper.com/?mode=sell&sell_defaultAmount=0.05sell_defaultCrypto=BTC

onlyFiats | excludeFiats

The default behavior of the Onramper Widget is to show all available fiat currencies based on available Onramps and Payment Methods for each individual end-user.

This behavior can be customized by adding the sell_excludeFiats parameter to exclude specific fiat currencies.

https://buy.onramper.com/?mode=sell&sell_excludeFiats=USD,EUR

By utilizing the sell_onlyFiats parameter you can select the specific fiat currencies to display in the Onramper Widget.

https://buy.onramper.com/?mode=sell&sell_onlyFiats=USD