Typical Buy Flow
Overview
This document describes the standard cryptocurrency purchase flow using Binance Connect's on-ramp service. The sequence diagram below illustrates the interaction between partner systems and Binance Connect APIs throughout the purchase process.
Flow Steps
1. Initialize
- Partner frontend renders the buy interface for users
- Backend provides necessary configuration and settings (when applicable)
2. Query Options
- Fetch supported blockchain networks for crypto delivery
- Retrieve available trading pairs
- Get supported payment methods
- Return data to the frontend
- You can be done in parallel. Depending on your UI/UX design, you may choose to call these APIs in different sequences.
3. Get Quote
- Request real-time price quote for the selected trading pair, payment method and amount
- Display quote information to the user
4. Create PreOrder
- Submit pre-order request to Binance Connect with user's selection
- Receive a redirect URL for payment processing
5. Payment
- Redirect user to Binance
- User completes the purchase using their preferred payment method
- Binance processes the transaction
6. Confirmation
- Receive webhook notifications for order status updates
- Query order details to confirm final transaction status
- Update user interface with purchase results and crypto delivery details