# What's the fastest way to add crypto payments to a web app?

> The fastest way to add crypto payments to an app: skip the gateway, list it free as a Cherry mini app and request payments users approve in their wallet.


The fastest way to add crypto payments to a web app is to skip building the payment stack: list the app free as a mini app in [Cherry.fun](https://cherry.fun/learn/features/cherry-wallet/) at [portal.cherry.fun](https://portal.cherry.fun), add the Mini App SDK, and ask the user's already-connected wallet for each payment, which they approve on their own device. There is no gateway account to open, no on-ramp to integrate and no review queue before you go live.

It works because Cherry's users finish the slow part before they ever reach you. They sign in with an account they already have and top up with a card or Apple Pay, so they open your app with a wallet connected and money ready to spend.

## Count the pieces you can skip

A crypto checkout on the open web is four jobs before anyone pays you: connect a wallet, get the buyer funded, sign them in, and run the payment itself. Inside Cherry the first three arrive done, so the work left is the payment request and your own delivery logic.

| Piece | Building it on the open web | Inside a Cherry mini app |
|---|---|---|
| Wallet connection | Add a connect-wallet flow, for example with the [Solana wallet adapter](https://github.com/anza-xyz/wallet-adapter) and its components | The user's wallet is connected when your app opens; a connect button fails Cherry's automated test |
| Funding | Integrate an on-ramp, or accept that many buyers hold no crypto yet | Users top up inside Cherry with a card, Apple Pay, Google Pay or PayPal |
| Sign-in | Build accounts, or ask for a signed message to log in | Cherry hands your app a signed launch token; your backend verifies it |
| Checkout | A gateway such as [Stripe stablecoin payments](https://docs.stripe.com/crypto/stablecoin-payments): request the payment method, wait for Stripe's review, then send buyers to crypto.stripe.com to connect a wallet | One SDK call; Cherry shows your label and the decoded amount, and the user approves or declines |
| Confirming delivery | Yours to build | Still yours to build |

A gateway is the better fit when your buyers are anyone on the internet and you want fiat: Stripe settles stablecoin payments in your Stripe balance in your local currency, up to 10,000 USD per transaction, and its [setup guide](https://docs.stripe.com/payments/accept-stablecoin-payments) opens them to businesses in every US state except New York. The Cherry route fits a web app whose buyers already live in a wallet: one free listing puts it in front of them on iPhone, Android, the Solana Seeker and the web.

## Check three things before you start

- **The app is deployed over https.** A staging address is fine while you integrate.
- **You have a Solana address to receive payments.** Payments in a mini app are Solana transactions today, in SOL or a Solana token such as USDC.
- **The app sells something the [Mini App Policy](https://portal.cherry.fun/docs/mini-apps/policy) allows.** Items, paid access and a commission on trades between your users all work. Prediction markets, token launches and regulated financial services are Partner-only.

## Step 1: Start a free listing and copy the agent brief

Open the listing wizard at [portal.cherry.fun](https://portal.cherry.fun) and fill in the basics: name, pitch, category, icon, who runs the app and how it earns (sales, a commission, something you describe yourself, or free). Listing costs nothing, and Cherry asks no fee on what you earn. If the app takes off, a voluntary tip to Cherry is welcome.

At the integration step the wizard writes a brief for your coding agent, filled with your app ID, your origin and your revenue model ([Build with an AI agent](https://portal.cherry.fun/docs/mini-apps/ai-agents)). Copy it or download it as Markdown.

If the brief names your own app ID, move on.

## Step 2: Let your agent add the SDK and a payment request

Paste the brief into Claude Code, Cursor, Codex or whichever agent works in the repository that serves your app. It installs the SDK, adds the framing header, signs users in from the launch token and registers the Cherry wallet adapter with auto-connect. Cherry's [Quickstart](https://portal.cherry.fun/docs/mini-apps/quickstart) puts the same work at about thirty minutes by hand.

```bash
npm install @cherrydotfun/miniapp-sdk@^0.1.24 @solana/web3.js @solana/wallet-adapter-base
```

The payment itself is one call. Build a Solana transaction that pays your address and send it with a label that tells the buyer what they get:

```ts
await cherry.wallet.signAndSendTransaction(tx, { label: 'Buy the pro editor' });
```

Cherry's wallet sheet shows your app's name, the amount and fee it decodes from the transaction, and your label. The user approves on their device; neither your app nor Cherry ever receives their keys ([Wallet and limits](https://portal.cherry.fun/docs/mini-apps/wallet)). Keep the label to 80 characters or fewer and never state an amount different from what the transaction moves.

A transaction signature coming back from the call means the request went through.

## Step 3: Tie each signature to a user and an order

A signature is a claim until you have seen the transaction confirmed on Solana, paying the right amount to your address. Then deliver the item or switch on the access. Verify the launch token on your backend once and key each purchase to the stable Cherry user ID it carries:

```ts
const claims = await verifyLaunchToken(token, { appId: APP_ID });
const userId = claims.cherry_id ?? claims.sub;
```

The wallet address alone is a weak key, because a user can pay from a different wallet than the one they signed in with.

Run one test purchase. It should show up once in your records, under the right user.

## Step 4: Try it in your test room, then publish

Add your deployed address in the wizard and open the app in your private test room, a group inside Cherry that only your team sees. Run the automated checks and the automated test, which opens the app inside Cherry in a real browser in about a minute. Publishing also needs the small domain proof file at /.well-known/cherry-app.json on your origin; the agent brief adds it. When the checks and the test pass, publish: the app is listed at once and people can pay you from the first day.

New listings start Unverified, with limits of $50 per transaction and $50 per wallet per day. A three-minute identity check of the project owner makes every project you own Verified, with up to $1,000 per transaction and $5,000 per wallet per day ([Verification](https://portal.cherry.fun/docs/mini-apps/verification)). Price your first items with that in mind.

## Fix the snags that slow a launch

- **The automated test fails on a connect button.** Remove it. The wallet is already connected, and asking for a signature to log in fails the test too.
- **A payment is refused for its size.** It is above your tier's per-transaction or daily limit. Offer a smaller amount, or verify.
- **A payment is refused as forbidden.** Token approvals, delegation, authority changes, delayed transactions and recurring subscriptions are refused for Unverified and Verified apps, so sell one-off items and passes.
- **The test warns about external checkouts.** Links to Stripe, PayPal, Coinbase Commerce or card on-ramps trigger a warning. It never blocks publishing, but inside Cherry the buyer already has a funded wallet.
- **The agent's change works locally and breaks inside Cherry.** Paste the failing check's message back to the agent: each one says what to change.

## Related guides

- [List a mini app for free](https://cherry.fun/learn/features/list-a-mini-app-for-free/): what a Cherry listing gives your app, from audience to limits.
- [How do I accept crypto payments in my app?](https://cherry.fun/learn/guides/how-to-accept-crypto-payments/): gateways and the Cherry route compared step by step.
- [Accept USDC payments](https://cherry.fun/learn/guides/accept-usdc-payments/) and [accept Solana payments](https://cherry.fun/learn/guides/accept-solana-payments/): one currency in depth.
- [Do I need a crypto onramp for my app?](https://cherry.fun/learn/guides/crypto-onramp/): why funding can stay in the wallet.
- [In-app purchases with crypto](https://cherry.fun/learn/guides/in-app-purchases-crypto/): pricing items and passes.

To see what your buyers see, get Cherry on [iPhone](https://apps.apple.com/app/cherry-fun-solana-messenger/id6749173799), [Android](https://play.google.com/store/apps/details?id=fun.cherry) or [the web](https://chat.cherry.fun).

## FAQ

### How long does it take to add crypto payments to a web app?

Cherry's Quickstart puts the integration at about thirty minutes by hand, or one prompt to an AI coding agent. The automated test takes about a minute, and the optional identity check that raises your limits takes about three minutes.

### Do I need Stripe or Coinbase to take crypto in my app?

Not for a Cherry mini app: the payment is a Solana transaction the user approves in their own wallet, and it pays the address you put in it. A gateway makes sense when you sell to anyone on the open web and want fiat in your Stripe balance.

### Can my users pay with a card instead of crypto?

They top up their Cherry wallet with a card, Apple Pay, Google Pay or PayPal, then pay your app from that wallet. Your app links no outside checkout.

### Does Cherry hold the payments or my users' keys?

No. Keys stay on the user's device and every transaction is signed there. Cherry is not a party to your app's transactions and does not hold or settle them.

### Which chains can my app charge on inside Cherry?

Only Solana, today. Mini app payments are Solana transactions, in SOL or a Solana token such as USDC. Your audience holds wallets on Solana, BNB, Base and Robinhood Chain, but requests to sign on other chains are refused.

## Sources

- [Cherry Portal](https://portal.cherry.fun)
- [Cherry docs: Mini apps overview](https://portal.cherry.fun/docs/mini-apps)
- [Cherry docs: Build with an AI agent](https://portal.cherry.fun/docs/mini-apps/ai-agents)
- [Cherry docs: Mini-app Quickstart](https://portal.cherry.fun/docs/mini-apps/quickstart)
- [Cherry docs: Wallet and limits](https://portal.cherry.fun/docs/mini-apps/wallet)
- [Cherry docs: Listing and publishing](https://portal.cherry.fun/docs/mini-apps/listing)
- [Cherry docs: Verification](https://portal.cherry.fun/docs/mini-apps/verification)
- [Cherry docs: Mini App Policy](https://portal.cherry.fun/docs/mini-apps/policy)
- [Stripe docs: Stablecoin payments](https://docs.stripe.com/crypto/stablecoin-payments)
- [Stripe docs: Accept stablecoin payments](https://docs.stripe.com/payments/accept-stablecoin-payments)
- [Solana wallet adapter on GitHub](https://github.com/anza-xyz/wallet-adapter)

