Skip to main content
For checkout flows where the amount is predetermined (subscription top-ups, fixed-price checkout, one-click refills), set fixedFromAmount to lock the widget’s amount input to a single USD value.

The fixedFromAmount option

fixedFromAmount lives inside routes.options in your TrustwareConfigOptions. When it is set, the amount input in the widget becomes read-only and displays the value you provide.
Pass this config to TrustwareProvider:

Value format

fixedFromAmount accepts a string or a number representing a USD amount:
The value is interpreted as a USD amount. Do not include a currency symbol or unit suffix.
When fixedFromAmount is set, the widget amount input is locked. Users can still select their source token, but they cannot modify the deposit amount.