API Reference
๐ Core Props (ALWAYS REQUIRED)
<RozoPayButton
appId="rozoDemo" // Demo app ID
toChain={8453} // Base chain ID
toAddress={getAddress("0x...")} // Your wallet address
toToken={getAddress(baseUSDC.token)} // USDC token
toUnits="10" // $10 USDC (optional)
intent="Pay Now" // Button text (optional)
preferredSymbol={[TokenSymbol.USDC, TokenSymbol.USDT]} // Optional: prioritize token symbols
/>Required Props
Prop
Type
Description
Example
Semi-Optional Props
Prop
Type
Description
Default
๐ฏ Event Handlers (RECOMMENDED)
Event Handler Types
๐ง Optional Customization Props
Chain & Token Preferences
Prop
Type
Description
Default
Stellar Payout Support
UI Customization
Prop
Type
Description
Options
Advanced Configuration
Prop
Type
Description
๐จ Built-in Themes
Theme Options
Custom Styling
๐ Modal Control & Behavior
Modal Options
Prop
Type
Description
Default
๐ Alternative: Pre-created Payments
Using PayId
Prop
Type
Description
๐จ Custom Component Variant
RozoPayButton.Custom
๐ TypeScript Types
Core Types
๐ Dynamic Payment Updates
Using resetPayment() Hook
๐ Next Steps
Last updated