# ROZO Intent Pay SDK

> **Cross-chain crypto payments made simple** – Accept payments from any blockchain with a single component

| Package                                                                  | npm                                                                   |
| ------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [@rozoai/intent-pay](https://npmjs.org/package/@rozoai/intent-pay)       | ![NPM](https://nodei.co/npm/@rozoai%2Fintent-pay.png?compact=true)    |
| [@rozoai/intent-common](https://npmjs.org/package/@rozoai/intent-common) | ![NPM](https://nodei.co/npm/@rozoai%2Fintent-common.png?compact=true) |

## 🎯 What RozoAI Intent Pay Does

RozoAI Intent Pay SDK is a React component that lets users pay you in crypto from supported networks — Base, Polygon, Solana, Stellar, and BSC. Your users can pay with their preferred wallet, while you receive exactly what you want.

**Key Benefits:**

* ✅ **One Component** - Add `<RozoPayButton>` and you're done
* ✅ **Supported Chains** - Ethereum, Base, Polygon, BSC, Solana, and Stellar
* ✅ **Any Wallet** - MetaMask, Phantom, Coinbase Wallet, and more
* ✅ **Supported Tokens** - USDC on Base/Polygon/Solana/Stellar; USDT on BSC
* ✅ **Mobile Ready** - Works perfectly on mobile apps
* ✅ **Easy Configuration** - Smart defaults, easy customization

## Demo Video

### Pay with Stellar to Base

{% embed url="<https://rozo-videos-cdn.s3.us-east-2.amazonaws.com/rozo-video-paystellar.MP4>" %}

### Pay with Base to Solana

{% embed url="<https://rozo-videos-cdn.s3.us-east-2.amazonaws.com/rozo-video-basetosol.MP4>" %}

## 📚 Documentation

| Document                                                                  | Description                                        |
| ------------------------------------------------------------------------- | -------------------------------------------------- |
| [**Quick Start Guide**](/integration/rozointentpay/quick-start.md)        | Get up and running in 5 minutes                    |
| [**Complete Examples**](/integration/rozointentpay/examples.md)           | Copy-paste ready examples for different frameworks |
| [**API Reference**](/integration/rozointentpay/api-reference.md)          | Complete props and configuration reference         |
| [**Stellar SEP-24 Support**](/integration/rozointentpay/stellar-sep24.md) | ROZO Stellar anchor hosts and supported assets     |
| [**Troubleshooting**](/integration/rozointentpay/troubleshooting.md)      | Common mistakes and how to avoid them              |
| [**AI Prompts & Templates**](/integration/rozointentpay/ai-prompts.md)    | Templates for AI services to generate code         |

## 🎬 Demo

## 🚀 Quick Example

```tsx
import { RozoPayButton } from "@rozoai/intent-pay";
import { baseUSDC } from "@rozoai/intent-common";
import { getAddress } from "viem";

<RozoPayButton
  appId="rozoDemo"
  toChain={baseUSDC.chainId}
  toAddress={getAddress("0x742d35Cc6634C0532925a3b8D454A3fE1C11C4e2")}
  toToken={getAddress(baseUSDC.token)}
  toUnits="10"
  intent="Pay $10"
  onPaymentCompleted={() => alert("Payment successful! 🎉")}
/>;
```

## 🔗 Supported Chains & Tokens

For a full list of supported chains and tokens, see the [Supported Tokens and Chains](/integration/api-doc/supported-tokens-and-chains.md) page.

## 💳 Payment Methods

Supported wallets:

* **Desktop**: MetaMask, Coinbase Wallet, Rainbow, Trust Wallet, Phantom, Albedo, etc.
* **Mobile**: All wallets via deep-linking

## 🔧 Installation

```bash
npm install @rozoai/intent-pay @rozoai/intent-common @tanstack/react-query wagmi viem @creit.tech/stellar-wallets-kit @stellar/stellar-sdk
```

## 📞 Support & Resources

* 📖 **Documentation**: [docs.rozo.ai](https://docs.rozo.ai)
* 💬 **Discord**: [discord.gg/rozoai](https://discord.com/invite/EfWejgTbuU)
* 🐛 **Issues**: [GitHub Issues](https://github.com/rozoai/intent-pay/issues)
* 📧 **Email**: <support@rozo.ai>
* 🔗 **Demo**: [demo.rozo.ai](https://demo.rozo.ai/)

***

**Made with ❤️ by the RozoAI team**

*Simplifying crypto payments, one transaction at a time.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rozo.ai/integration/rozointentpay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
