@getpara/react-native-wallet provides hooks and helpers 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 available catalog assets before rendering buy or sell controls.useOnRampConfig returns feature flags, your default asset, and any inline Apple Pay providers enabled for your device, while useOnRampCatalog pages through supported asset implementations and their providers.
RampCatalog.tsx
ParaMobile detects Platform.OS automatically when constructed. On Android devices, CDP (Coinbase Apple Pay) is omitted from config.inlineApplePayProviders and catalog results because Coinbase Apple Pay is iOS-only.Hosted Checkout (Buy and Off-Ramp)
Hosted checkout supports card and bank purchases across Stripe, MoonPay, Ramp Network, Coinbase (Widget), Transak, and Banxa, as well as off-ramp sales (SELL) for providers that support withdrawals. Your app creates an order with client.createHostedOnRampOrder, opens the returned portalUrl, and inspects the callback URL or flat getOnRampOrder response when the user returns.
Option 1: System Auth Session (Expo / ASWebAuthenticationSession)
Use Expo’sWebBrowser.openAuthSessionAsync with a deep link created via Linking.createURL to open the Para Portal in an authentication browser session that returns directly to your app.
- Buy (On-Ramp)
- Sell (Off-Ramp)
Create a
BUY order with createHostedOnRampOrder, open portalUrl, and parse the returned callback status with parseOnRampCallbackUrl.HostedBuyButton.tsx
Option 2: In-App WebView Bridge
If you embed the Para Portal insidereact-native-webview instead of a system browser session, wire createOnRampWebViewBridge to forward portal signing and deposit messages to ParaMobile.
PortalWebView.tsx
When
type is OnRampPurchaseType.SELL, the provider supplies crypto deposit instructions after the user confirms the sale in the portal. Call client.sendOffRampDeposit when the callback reports status === "deposit_required" (or in onDepositRequest when using createOnRampWebViewBridge) to broadcast the deposit transaction from the user’s Para wallet.Coinbase Apple Pay (Headless, iOS Only)
Coinbase headless guest checkout renders an Apple Pay payment sheet inside an iOS WebView on your verified Apple Pay merchant domain.Method Sequence
- Optionally call
client.checkCoinbaseOnrampLimits({ phoneNumber })andclient.createCoinbaseOnrampLimitUpgrade({ phoneNumber })to obtain and openupgradeUrlwhenlimits.upgradeableis true. - Call
client.createCoinbaseOnrampOrderwithisQuote: trueto preview fees, then withisQuote: false(or omitted) to create the order and obtainpaymentLink.urlandpurchaseId. - Render
paymentLink.urlin an iOSWebView, listening foronramp_api.polling_successoronramp_api.commit_successmessages withparseCoinbaseApplePayEvent. - Call
client.settleCoinbaseOnrampPurchase({ purchaseId, walletId })when payment completes to confirm settlement status.
CoinbaseApplePayButton.tsx
userPhoneNumber and userEmail are placeholders for the signed-in buyer’s verified contact details. In production, the server validates both against the user’s verified Para records.Order States and Partner Events
- Order states: Real orders start as
INITIATEDand transition toFINISHEDon settlement orCANCELLEDif abandoned or failed. Quotes (isQuote: true) do not create an order record or emit partner events. - Partner events:
ONRAMP_LAUNCHEDfires whencreateCoinbaseOnrampOrdercreates a real order.ONRAMP_TRANSACTION_COMPLETE_V2and theonramp.completedserver webhook fire whensettleCoinbaseOnrampPurchaseor background reconciliation recordsFINISHED.
Because mobile apps do not send a browser
Origin header, Para selects the first allowlisted Apple Pay domain configured on your API key in the Developer Portal unless you pass domain explicitly. On non-production API keys, Coinbase Apple Pay orders run in sandbox mode (?useApplePaySandbox=true) and simulate immediate settlement.Brale ACH (Pay by Bank, Headless)
Brale ACH lets users buy USDC with a U.S. bank account usingreact-native-plaid-link-sdk (^12.8.9) and Para’s useBraleAchCheckout hook (or the underlying ParaMobile methods).
Method Sequence
- Call
useBraleAchCheckout(which wrapsclient.createBraleAchCheckout,client.linkBraleAchBank,client.submitBraleAchDeposit, andclient.getBraleAchCheckout). - Call
ach.start().start()derivesauthorizationTextand callscreateBraleAchCheckout(...). If the user has a saved bank (andlinkNewBankis nottrue),ach.stepmoves to"REVIEW"; whenlinkNewBank: trueornextAction === "launch_plaid", it skips"REVIEW"and transitions straight to"LINKING"withach.plaidLinkTokenset. - On
"REVIEW", collectach.legalNamewhenach.reviewMode === "FIRST_PURCHASE", displayach.authorizationText, and callach.confirm()to submit the debit (or, whenlinkNewBank: trueis passed toconfirm(), create a new link checkout and move to"LINKING"). - When
ach.plaidLinkTokenis set, open native Plaid Link withopenBralePlaidLink, passingplaidSdk: { create, open }, and forwardusePlaidEmitterevents to the returnedonEventhandler socompleteBankLinkautomatically submits the debit. - Inspect transfer progress with
client.getBraleAchCheckout({ checkoutId })orclient.listBraleAchTransfers().
BraleAchScreen.tsx
Order States and Partner Events
- Checkout stages and
nextAction: A checkout moves throughstage: "link_required"(nextAction: "launch_plaid"),stage: "linked"(nextAction: "confirm_deposit"), andstage: "submitted"(nextAction: "wait"). TheuseBraleAchCheckouthook exposes UI steps:"IDLE","STARTING","REVIEW","LINKING","SUBMITTING","SUBMITTED", and"FAILURE". - Brale transfer and order states:
braleStatustracks Brale’s settlement ("pending","compliance review","processing","complete","canceled","failed","refunding","refunded"). Transfers in"compliance review"keep the checkout (stage: "submitted",nextAction: "wait") and underlying order (INITIATED) open until settledFINISHEDor failedCANCELLED. - Partner events:
ONRAMP_LAUNCHEDfires whensubmitBraleAchDepositsubmits the debit. Because ACH transfers take 1 to 3 business days to clear,ONRAMP_TRANSACTION_COMPLETE_V2does not fire when the bank settles.
For iOS and Android bank OAuth redirects inside 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 per checkout to override them. Until allowlisted by Brale, Para leaves those values out of the Plaid link token and OAuth banks can’t finish linking.Headless Card, Apple Pay & Reusable KYC
UseuseHeadlessOnRampCheckout together with the optional @getpara/react-native-wallet/ramps/meld subpath (powered by @meldcrypto/react-native-sdk) to present routed card or iOS Apple Pay payments inline inside your app without bundling Meld unless you import /ramps/meld. Headless card and Apple Pay orders are currently fulfilled through BANXA; headless Meld Apple Pay is iOS-only and requires a registered Apple Pay domain. Installing @meldcrypto/react-native-sdk (an optional peer dependency) requires a native iOS/Android rebuild via EAS Build or expo prebuild and is not included in Expo Go. Reusable KYC (getKycStatus, createKycSession, shareKyc) lets users verify once and share credentials across Banxa and Transak.
Google Pay is in the works for routed headless checkout. Talk to us if you need Google Pay support.
Method Sequence
- Call
useHeadlessOnRampCheckoutand triggercheckout.start(), which fetches a quote (getHeadlessOnRampQuote) and prerequisites (getHeadlessOnRampRequirements). - If
checkout.step === "VERIFICATION_REQUIRED", run your Sumsub KYC flow (getKycStatus,createKycSession, orshareKyc) and callcheckout.start()again. - On
checkout.step === "REVIEW", display quote fees and any required agreements, then callcheckout.confirm()to record agreement acceptance (acceptHeadlessOnRampAgreements) and create the order (createHeadlessOnRampOrder). - When
checkout.step === "PAYMENT"andcheckout.orderis set, mountHeadlessOnRampPaymentViewand forwardonPaymentSubmitted,onCancel, andonErrortocheckout.
HeadlessCheckout.tsx
Order States and Partner Events
- Order states: Orders start as
INITIATEDand transition toFINISHEDon settlement orCANCELLEDif failed or abandoned.useHeadlessOnRampCheckoutpollsgetOnRampOrderafter submission until a terminal state. - Partner events: Unlike hosted, Coinbase Apple Pay, and Brale ACH flows,
createHeadlessOnRampOrderdoes not emitONRAMP_LAUNCHEDorONRAMP_TRANSACTION_COMPLETE_V2client events. Subscribe to the serveronramp.completedandonramp.cancelledwebhooks for authoritative fulfillment updates.
Listen for SDK Events and Test Mode
Subscribe to Para’s client events viaonParaEvent to react in your app UI as orders launch and settle. Both ONRAMP_LAUNCHED and ONRAMP_TRANSACTION_COMPLETE_V2 deliver the OnRampEventData payload matching the onramp.completed webhook schema (transactionHash and completedAt are null at launch).
RampEvents.tsx
Test mode is determined by your API key’s environment (Beta keys run in test mode; production keys reject
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.