Skip to main content
RampHub splits order handling into two flows.

Buy order

Sell order

Use the buy page when the user is funding crypto from fiat. Use the sell page when the user is withdrawing fiat and may need provider-specific bank support. Both flows create an order intent automatically. That intent is the active payment window for the order. If you need to show a countdown for an active order window, open Order intent to fetch the current window for a customer, token, and network. If you create a new order while the same customer, token, and network already has an active window, RampHub can return PAYCHAIN_ACTIVE_INTENT_CONFLICT. In that case, your app can show the active window first or resend the order with overrideActiveIntent: true.