Example App

RozoPayButton Examples

Developer-facing examples for testing payment flows and config behavior.
@rozoai/intent-pay v0.1.18-beta.1

RozoPayButton Reference

Available Props

Inline-params reference page for RozoPayButton and RozoPayButton.Custom.

Required Props

PropTypeRequiredDescription
appIdstringYesPublic app ID from Rozo.
toChainnumberYesDestination chain ID.
toAddressstringYesRecipient address (EVM/Solana/Stellar format).
toTokenstringYesDestination token identifier for target chain.
children({ show, hide }) => ReactElementCustom onlyRequired for RozoPayButton.Custom trigger rendering.

Payment Props

PropTypeRequiredDescription
toUnitsstringNoExact destination amount (USD/EUR style amount), e.g. "10" or "10.50".
intentstringNoIntent verb label such as "Pay", "Deposit", or "Purchase".
feeTypeFeeTypeNoFee mode: exactIn (default) or exactOut.
paymentOptionsExternalPaymentOptionsString[]NoLimit/enable external payment methods.
preferredChainsnumber[]NoPrioritize source assets from these chains.
preferredTokensToken[]NoPrioritize specific source tokens.
preferredSymbolTokenSymbol[]NoPrioritize token symbols (USDC, USDT, EURC).
metadataRecord<string, any>NoArbitrary metadata for tracking/correlation.

Event + Behavior Props

PropTypeRequiredDescription
onPaymentStarted(event) => voidNoCalled when payment tx is seen on chain.
onPaymentCompleted(event) => voidNoCalled when destination transfer/call succeeds.
onPaymentBounced(event) => voidNoCalled when destination call reverts and refunds.
onPayoutCompleted(event) => voidNoCalled when payout completes.
onOpen() => voidNoCalled when modal opens.
onClose() => voidNoCalled when modal closes.
defaultOpenbooleanNoOpen modal by default.
closeOnSuccessbooleanNoAutomatically close modal after success.
resetOnSuccessbooleanNoReset payment state after success.
connectedWalletOnlybooleanNoRestrict flow to already-connected wallets only.
confirmationMessagestringNoCustom message on confirmation page.
showProcessingPayoutbooleanNoShow payout-processing state after payment completion.

Visual Props

PropTypeRequiredDescription
mode"light" | "dark" | "auto"NoVisual mode.
themeThemeNoBuilt-in named theme.
customThemeCustomThemeNoCustom theme object.
disabledbooleanNoDisable interaction.