How do I accept USDC payments in a web app?

To accept USDC payments in a web app you need buyers holding USDC, a USDC account of your own and an on-chain check. The Solana route, step by step.

How do I accept USDC payments in a web app?

To accept USDC payments in a web app, you need buyers who already hold USDC, a USDC account of your own on the chain they pay from, and a backend check that the transfer landed before you deliver anything. The buyers are the hard part, and a free listing solves it. List the app as a mini app in Cherry.fun at portal.cherry.fun , with no review queue, and it opens for people who topped up with a card, Apple Pay, Google Pay or PayPal and arrive with their wallet already connected, so you can charge in USDC on Solana from day one.

Most crypto checkouts lose buyers at the wallet step. Inside Cherry that step is already behind them: people sign in with an account they already have, so whoever opens your app holds a wallet that can pay.

Stripe or a direct transfer: where does the USDC end up?

Decide first whether you want to keep USDC or want dollars that a buyer paid in USDC. Stripe’s stablecoin payments accept USDC on several networks and settle in your Stripe balance in your local currency. A direct transfer lands USDC in an account you control, and you write the code that checks it.

RouteWhat you buildWhere the buyer’s USDC comes fromWhere the money landsLimits worth knowing
Stripe stablecoin paymentsTurn on the payment method in a Stripe account; the buyer is sent to crypto.stripe.com to connect a walletThe buyer’s own wallet, on Tempo, Ethereum, Solana, Polygon or BaseYour Stripe balance, in your local currency10,000 USD per transaction; businesses in the US, with a private preview in the EU, Hong Kong, Mexico and Switzerland
Direct USDC on Solana, any walletA connect-wallet screen, the transfer and the on-chain checkWhatever the buyer bought elsewhere; they also need SOL for the feeYour USDC token accountYours to set
Cherry mini appA free listing, the Mini App SDK, the transfer and the on-chain checkTopped up inside Cherry by card, Apple Pay, Google Pay or PayPalYour USDC token account on Solana$50 per transaction and per wallet per day until you verify, then $1,000 and $5,000; no subscriptions

Pick Stripe when you sell to the whole web and want fiat in the bank, or need recurring charges. Inside Cherry, the two hardest pieces of the direct route, getting a stranger a wallet and getting money into it, are done before your app loads.

What you need before the first USDC sale

  • A web app deployed to an https address. Staging works while you integrate.
  • A Solana wallet you control, to receive the USDC.
  • Something to charge for: an item, access to a level or feature, or a commission on a trade between your users.
  • An app that stays out of the Mini App Policy ’s Partner-only categories (prediction markets, token launches and regulated financial services) and offers no games of chance with stakes.
  • Prices that fit the Unverified limit of $50 per transaction, or a plan to verify before launch.

Step 1: Open a USDC account on your receiving wallet

On Solana, USDC does not sit at your wallet address. It sits in a token account tied to your address and to USDC’s mint, called an associated token account. A token transfer only succeeds if the recipient already has a token account for that mint, and somebody has to fund it (Associated Token Account program ).

Create yours before launch, so no buyer pays the extra SOL that account creation costs. Use the mainnet mint Circle publishes for Solana, EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (Circle’s USDC contract addresses ). USDC is issued through regulated affiliates of Circle and is redeemable 1:1 for US dollars, according to Circle .

Check it on a Solana explorer: you should see a token account owned by your wallet with that exact mint.

Step 2: List the app and connect the Cherry wallet

Open the listing wizard at portal.cherry.fun and describe the app: name, pitch, category, icon, the chains it uses and how it earns. Listing is free. At the integration step the wizard writes a brief for Claude Code, Cursor or Codex filled with your app ID; paste it in, or follow the mini-app Quickstart by hand:

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

Register the Cherry wallet adapter with auto-connect and the buyer’s wallet is connected when your app opens. Leave out any connect-wallet button: the automated test fails an app that shows one.

You know it worked when your app opens in your private test room showing your own Cherry name, and the automated test’s sign-in check passes.

Step 3: Build the USDC transfer

USDC uses 6 decimals on every chain (Circle’s USDC reference ), so 4.99 USDC is 4,990,000 base units. Store prices in base units and pass the mint and 6 decimals to a checked transfer.

import { PublicKey, Transaction } from '@solana/web3.js';
import { getAssociatedTokenAddressSync, createTransferCheckedInstruction } from '@solana/spl-token';
import { withAppReference, withTransactionLabel } from '@cherrydotfun/miniapp-sdk/solana';

const USDC_MINT = new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v');
const MERCHANT = new PublicKey('YOUR_RECEIVING_WALLET');
const PRICE = 4_990_000n; // 4.99 USDC

async function buyPass(payer: PublicKey) {
  const from = getAssociatedTokenAddressSync(USDC_MINT, payer);
  const to = getAssociatedTokenAddressSync(USDC_MINT, MERCHANT);
  const ix = createTransferCheckedInstruction(from, USDC_MINT, to, payer, PRICE, 6);
  const tx = new Transaction().add(withAppReference(ix, APP_ID));
  return withTransactionLabel('Buy the season pass', () => sendTransaction(tx, connection));
}

Cherry shows the buyer your app’s name, the USDC amount it decodes from the transaction and your label, and the buyer approves or declines on their own device. Your app never sees their keys (Wallet and limits ). Some people pay from a different wallet than the one they signed in with; the SDK exposes it as the payment wallet, so pass that as payer when it is set.

A successful call returns a transaction signature.

Step 4: Check the USDC landed before you deliver

A signature from the browser is a claim. Send it to your backend, fetch the transaction from a Solana RPC node once it is confirmed, and compare your USDC account’s balance before and after. It must have grown by the price, in the EPjF… mint, and the transaction must carry no error. Store each signature you accept so the same one never counts twice.

Then deliver the item or switch on the access, keyed to the stable user ID in the verified launch token. The wallet address can change when someone picks another wallet to pay with.

Make one test purchase. It should appear once in your records, tied to the right user.

Step 5: Go live and raise your limits

Run the automated checks and the one-minute automated test on the address users will get, then publish. Your app is listed at once and opens inside Cherry on iPhone, Android, the Solana Seeker and the web, in front of people who hold wallets on Solana, BNB, Base and Robinhood Chain and can top up or swap into Solana USDC without leaving the app.

Limits count the value that leaves the buyer’s wallet, so a USDC payment counts its amount. A new listing is Unverified: up to $50 per transaction and $50 per wallet per day. When your prices outgrow that, run the identity check from the portal, an ID document and a selfie that take about three minutes. Every project you own then allows up to $1,000 per transaction and $5,000 per wallet per day (Verification ).

Why a USDC transfer gets refused

  • The payment is refused with a per-transaction or daily limit. The price is above your tier. Offer a smaller amount or verify.
  • Simulation fails for a buyer who holds USDC. They may have no SOL for the network fee, or your USDC account does not exist yet. Ask them to top up a little SOL in Cherry, and create your account as in Step 1.
  • Tests pass on devnet, then real payments fail. Devnet USDC has its own mint. Switch the constant to the mainnet mint before you publish.
  • You wanted a monthly USDC plan. Recurring subscriptions and token approvals are refused for Unverified and Verified apps. Sell a pass for a fixed period and let people renew it.
  • The automated test warns about external checkouts. A link to Stripe, PayPal or a card on-ramp triggers it. Publishing still works, but inside Cherry the buyer pays from the wallet.

More payment guides

Try the buyer’s side yourself: get Cherry on iPhone , Android or the web .

FAQ

Which USDC mint does a Cherry mini app accept?

Solana mainnet USDC only, the mint Circle publishes as EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. Cherry users hold wallets on Solana, BNB, Base and Robinhood Chain, but a mini app can only ask them to sign Solana transactions today, and requests for other chains are refused.

Do buyers need SOL as well as USDC?

A little. Solana transactions need a little SOL for network fees, and the buyer’s wallet pays it. Cherry users can top up or swap for SOL inside the wallet in a few taps, and your app can show a clear message when the fee is missing.

Is Stripe’s USDC option the same as getting USDC in my wallet?

No. Stripe’s stablecoin payments take USDC from the customer’s wallet and settle the payment in your Stripe balance in your local currency. A USDC transfer in a Cherry mini app lands as USDC in the Solana account you control.

What if a buyer holds USDC on Base instead of Solana?

They swap it to Solana USDC inside Cherry before paying. Cherry swaps across Solana, BNB, Base and Robinhood Chain in the wallet, and your app only ever sees a Solana USDC transfer.

Does Cherry take a cut of USDC payments?

No. Listing is free and Cherry asks no fee on what your app earns; the buyer pays the Solana network fee. If the app does well you can send Cherry a voluntary tip, and tipping nothing changes nothing.

Sources

Build on Cherry

Add chat to your dApp, ship a mini app, or run bots and rooms through the API. Self-serve at the developer portal.