Skip to main content
Your Flutter app can offer fiat on-ramps and off-ramps directly inside your own UI. package:para/para.dart provides the ParaOnRamp and ParaHeadlessOnRamp extensions on Para, ParaHeadlessOnRampCheckout (with the optional para_meld companion plugin), and an onRampEvents stream for hosted provider checkouts, headless iOS Coinbase Apple Pay orders, headless Brale ACH bank transfers, and routed headless card and iOS Apple Pay checkouts.
Providers, enabled networks, allowed assets, Apple Pay domains, and Brale Plaid mobile OAuth settings are configured per API key in the Developer Portal. Set those up first in Set Up Fiat Onramps.

Discover Providers and Assets

Read your key’s configuration and catalog items before rendering buy or sell buttons. getOnRampConfig returns feature flags, your default asset, and inline Apple Pay providers available for the current device, while getOnRampCatalog returns paginated asset implementations and provider limits.
ramp_catalog.dart
On Android devices, the SDK identifies the host OS automatically and excludes OnRampProvider.cdp (Coinbase Apple Pay) from config.inlineApplePayProviders and catalog results, because Apple Pay is iOS-only.

Hosted Checkout (Buy and Off-Ramp)

Hosted checkout supports card and bank orders across Stripe, MoonPay, Ramp Network, Coinbase (Widget), Transak, and Banxa, as well as off-ramp sales (SELL) for supported providers. Create an order with createHostedOnRampOrder, launch the portal with launchOnRampPortal, and fetch the flat order state with getOnRampOrder.
Create an OnRampPurchaseType.buy order for a provider supporting isBuy, launch the hosted portal, and inspect the flat order state on return.
hosted_buy.dart
appScheme is required when initializing Para.fromConfig; pass callbackUrlScheme to launchOnRampPortal (or FlutterWebAuthSession) to override it so launchOnRampPortal appends nativeCallbackUrl while preserving the #rampLaunchToken fragment. For off-ramps (OnRampPurchaseType.sell), call sendOffRampDeposit when portalResult.status == 'deposit_required' and updated.pendingDeposit is non-null.

Coinbase Apple Pay (Headless, iOS Only)

Coinbase headless guest checkout renders an Apple Pay payment sheet inside an iOS WebView hosted on your verified merchant domain.
Coinbase headless Apple Pay is available on iOS only and requires at least one allowlisted domain configured in both Coinbase Developer Platform and the Developer Portal (see Coinbase setup), plus a verified U.S. phone number and email on the user’s account. Android devices cannot use this flow.

Method Sequence

  1. Optionally call checkCoinbaseOnrampLimits and createCoinbaseOnrampLimitUpgrade to inspect guest checkout limits and open upgradeUrl in an external browser or WebView when limits.upgradeable == true.
  2. Call createCoinbaseOnrampOrder with isQuote: true for a quote, then with isQuote: false (or null) to create the order and obtain paymentLink.url and purchaseId.
  3. Render paymentLink.url inside an in-app iOS WebView (webview_flutter).
  4. Call settleCoinbaseOnrampPurchase(purchaseId:, walletId:) after payment returns to confirm settlement.
coinbase_apple_pay.dart
userPhoneNumber and userEmail are placeholders for the buyer’s verified contact details. In production, the server validates both against the user’s verified Para records, and settleCoinbaseOnrampPurchase should only run after presentPaymentSheet confirms payment (onramp_api.polling_success or onramp_api.commit_success).

Order States and Partner Events

  • Order states: Orders track through OnRampPurchaseStatus values initiated, finished, cancelled, failed, or unknown. Quote requests (isQuote: true) do not create an order record or emit partner events.
  • Partner events: para.onRampEvents emits ParaOnRampEventType.launched when createCoinbaseOnrampOrder creates a real order and ParaOnRampEventType.completed when settleCoinbaseOnrampPurchase confirms settlement. Server webhooks emit onramp.completed and onramp.cancelled.
When domain is omitted on iOS, Para selects the first allowlisted Apple Pay domain configured on your API key in the Developer Portal. On non-production keys, Apple Pay orders run in Coinbase sandbox mode (?useApplePaySandbox=true) and simulate immediate settlement.

Brale ACH (Pay by Bank, Headless)

Brale ACH lets U.S. users fund an EVM or Solana wallet from a bank account using a Flutter Plaid Link plugin (such as plaid_flutter) and Para’s Brale checkout methods. When platform is omitted on CreateBraleAchCheckoutParams, para fills it from the current host OS automatically.
Production Brale ACH requires the Growth plan or higher, ACH enabled in the Developer Portal, and a biometric-authenticated user (guest and external-wallet-only logins are unsupported). For banks that require OAuth redirects in Plaid Link, enter your iOS Plaid OAuth redirect URI (https://... Universal Link) and Android package name (for example com.example.app) in the ACH section of the Developer Portal (saving either notifies Para for Brale allowlisting), or pass redirectUri / androidPackageName on CreateBraleAchCheckoutParams to override them; until allowlisted by Brale, Para leaves them out of the Plaid link token.

Method Sequence

  1. Call createBraleAchCheckout with walletId and amountUsd (plus optional customer and assetImplementationId).
  2. Inspect checkout.nextAction:
    • 'launch_plaid': Launch Plaid Link with checkout.plaidLinkToken, then call linkBraleAchBank(checkoutId:, publicToken:).
    • 'confirm_deposit': Show checkout.savedBank.
  3. Call getBraleAchAuthorization(amountLabel:, bankLabel:) and present the returned text to the user.
  4. Call submitBraleAchDeposit(checkoutId:, authorizationTextVersion:) to authorize the debit and launch the order.
  5. Poll or list status via getBraleAchCheckout(checkoutId:) or listBraleAchTransfers().
brale_ach.dart

Order States and Partner Events

  • Checkout stages and nextAction: Checkouts transition across stage 'link_required' (nextAction: 'launch_plaid'), 'linked' (nextAction: 'confirm_deposit'), and 'submitted' (nextAction: 'wait').
  • Brale transfer and order states: braleStatus reports 'pending', 'compliance review', 'processing', 'complete', 'canceled', 'failed', 'refunding', or 'refunded'. Transfers in 'compliance review' keep the checkout (stage: 'submitted', nextAction: 'wait') and order (OnRampPurchaseStatus.initiated) open until settled finished or failed cancelled.
  • Partner events: para.onRampEvents emits ParaOnRampEventType.launched when submitBraleAchDeposit runs. ACH settlement takes 1 to 3 business days and ParaOnRampEventType.completed does not fire on settlement; subscribe to the server onramp.completed webhook instead.
Subscribe to both onramp.completed and onramp.cancelled webhooks for Brale ACH. If a bank returns an ACH debit after initial delivery, Brale reverses the transfer and Para emits onramp.cancelled after onramp.completed.

Headless Card, Apple Pay & Reusable KYC

Use ParaHeadlessOnRampCheckout (package:para/para.dart) together with the optional para_meld companion plugin to render routed card and iOS Apple Pay checkouts natively without requiring apps that skip headless Meld to link MeldSDK or io.meld:meldsdk. Because para_meld is marked publish_to: none and declares para: { path: ../.. }, reference para_meld via path: or git url: + path: packages/para_meld and source para from the matching path: or git: ref (or add a dependency_overrides entry) so pub get does not hit a source mismatch. Headless card and Apple Pay orders are currently fulfilled through OnRampProvider.banxa; pass applePay: ParaMeldApplePayRequest(...) when presenting an iOS Apple Pay order. Pair getKycStatus(), createKycSession(), and shareKyc() (with KycShareProvider.banxa or KycShareProvider.transak) when checkout.step == HeadlessOnRampCheckoutStep.verificationRequired.
Google Pay is in the works for routed headless checkout. Talk to us if you need Google Pay support.
headless_checkout.dart
Unlike hosted, Coinbase Apple Pay, and Brale ACH flows, createHeadlessOnRampOrder does not emit ParaOnRampEventType.launched or ParaOnRampEventType.completed on para.onRampEvents. ParaHeadlessOnRampCheckout polls getOnRampOrder after submission, and server webhooks (onramp.completed and onramp.cancelled) remain authoritative.

Listen for SDK Events and Test Mode

Listen to para.onRampEvents to handle launch and settlement notifications from the Para bridge. Both ParaOnRampEventType.launched and ParaOnRampEventType.completed deliver an OnRampEventPayload matching the onramp.completed webhook shape.
ramp_events.dart
Test mode is controlled by your API key’s environment (Beta keys run in test mode; production rejects testMode: true). In test mode, Brale ACH orders deliver SBC on Sepolia, Base Sepolia, Avalanche Fuji, or Solana Devnet (Optimism has no ACH test network), and Coinbase Apple Pay orders simulate settlement immediately.