Docs
  • What We Do
  • Supported Countries, Payment Methods, and Cryptocurrencies
  • Getting Started
  • Integration Guides
    • API
      • Required Headers
      • Create a User
      • Assign a Deposit Address
      • KYC
      • Link and Verify a Bank Account
        • Re-link Bank Account
        • Update Bank Account
        • Delete Bank Account
      • Transaction Limits
      • Buy Crypto (ACH)
      • Transaction Monitoring
      • Transaction History
    • React Native
      • Installation
      • Session Token and Wallet Signing
      • Preset Order Details
      • Example
      • Reference
      • Release History
      • User experience
        • Sign up
        • Sign in
        • Buy crypto
        • Settings & activity
    • React JS (Beta)
      • Installation
      • Session Token and Wallet Signing
      • Preset Orders
      • Callbacks
      • Theming
      • Example
      • Reference
      • Release History
  • API Reference
    • Endpoints
      • Auth
        • Crypto Wallet
        • Email OTP
        • SMS OTP
      • Activity
      • Bank
      • Client
      • Config
      • Crypto
      • Users
      • Wallets
      • Webhook Registrations
    • Custom Headers
    • Error Codes
    • Types Glossary
    • Postman
    • Open API Specification
    • Webhooks
  • Design Reference
    • UI/UX Starter kit
    • UI Requirements
  • Guides
    • Sandbox Testing
    • User Authentication
    • Link a new Signing Wallet to an Existing User
    • Plaid Bank Linking
      • Plaid OAuth Support
    • Client Dashboard (Alpha)
  • User Support Reference
    • User Account Flags
      • KYC Review
      • Transaction Processing
      • NSFs and Returned Payments
      • Fraud
    • Transactional Emails
Powered by GitBook
On this page
  • All supported Cryptos can be used with Preset Orders
  • Handling User Limits

Was this helpful?

  1. Integration Guides
  2. React JS (Beta)

Preset Orders

PreviousSession Token and Wallet SigningNextCallbacks

Last updated 1 year ago

Was this helpful?

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 RatioPresetOrder object into the RatioButton component with the presetOrder attribute.

Example

<RatioButton presetOrder={
              {
                fiatAmount: 20,
                cryptoCurrency: 'ETH'
              } as RatioPresetOrder
          }/>

If you pass null, or omit the attribute, the Ratio flow will have the default functionality when the view is pressed.

For more details please see the example below

All supported Cryptos can be used with Preset Orders

Crypto Currency
Network
Minimum Fiat Amount
Ach types

ETH

Ethereum

$20 USD

Standard, Instant

USDC_ETHEREUM

Ethereum

$20 USD

Standard, Instant

MATIC

Polygon

$1 USD

Standard, Instant

USDC_POLYGON

Polygon

$1 USD

Standard, Instant

AMKT_POLYGON

Polygon

$1 USD

Instant

Handling User Limits

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 JS Library checks the user's remaining limit at the start of the user session.

Example