Preset Order Details
Since v0.10.0 of the library, you are able to pass in order details, allowing you to send the user directly to the order review screen.
In order to do this, you must pass a
RatioPresetOrderobject into the
RatioComponentcomponent with the
} as RatioPresetOrder
If you pass null, or omit the attribute, the Ratio flow will have the default functionality when the view is pressed.
Minimum Fiat Amount
If you are also using the Ratio API, you will be able to check the user's limits before providing the preset order by calling the Transaction Limits endpoint. This will ensure that when the Ratio flow is opened, the order will have a valid amount rather than let the user know they are unable to perform the transaction. This is an optional step as the React Native SDK checks the user's remaining limit at the start of the user session.