How to Add a USDC Checkout Widget for One-Time Payments
Learn to embed a USDC payment widget on your landing page for one-time stablecoin payments. Covers widget setup, pricing, callbacks, and onchain payment flow.

Collecting stablecoin payments directly from your landing page is now a practical option. You can embed a checkout widget that lets users pay you in USDC, straight from their own wallet, with the payment settling directly to your address. No custody, no manual reconciliation, no off-platform redirects unless you want them. Here’s how to go from zero to a live USDC payment widget focused on one-time payments.
What a USDC Payment Widget Does (and Does Not)
A USDC payment widget embedded on your landing page enables customers to pay you in stablecoins without leaving your site. When a payer interacts with the widget, they connect a wallet, see the payment amount, and submit a signed transaction. You receive funds to a settlement address you control, and you get a programmatic callback (or webhook) when payment is confirmed. There is no custody or escrow: the payment moves directly from the payer to you.
The widget does not store private keys, seed phrases, or USDC funds. It does not take recurring approvals for one-time payments. Each payment is a separate, explicit transaction that the payer reviews and signs.
High-Level Flow: One-Time USDC Payment via Embedded Widget
- User visits your landing page.
- Widget loads and displays the payment amount (example: $50 USDC).
- User connects their wallet.
- Widget prompts the user to sign and submit a USDC transfer.
- On-chain transfer is broadcast and confirmed.
- You receive a webhook or callback with payment details.
- User sees an in-widget confirmation.
Embedding the Widget: What You Need
To embed a stablecoin checkout widget, you typically need:
- Your settlement address (where funds go)
- The USDC amount to collect
- The blockchain network (Arc, Base, Ethereum, or Polygon)
- An API key or widget configuration snippet from your billing provider
- A callback or webhook endpoint (optional, but recommended)
No code changes to your backend are strictly required, but you will want to handle the payment confirmation event programmatically.
Example: Collecting $50 USDC on Polygon
Suppose you want to collect a $50 USDC payment as a one-time charge for digital content. You accept USDC on Polygon.
Step 1: Generate a Widget Configuration
Most billing providers supply a dashboard to create a payment widget. You specify:
- Settlement address:
0xYourPolygonAddress - Amount:
50 - Asset:
USDC - Chain:
Polygon - Payment type: “one-time”
This gives you a code snippet, often an HTML <script> tag or a React component. Here’s what a minimal HTML embed might look like:
<!-- Example embed snippet -->
<script src="https://widget.reclack.com/v1/widget.js"></script>
<div id="reclack-widget"></div>
<script>
ReclackWidget.init({
elementId: 'reclack-widget',
settlementAddress: '0xYourPolygonAddress',
amount: 50,
asset: 'USDC',
chain: 'polygon',
paymentType: 'one-time',
webhookUrl: 'https://yourdomain.com/api/reclack-webhook' // optional
});
</script>
The actual property names and widget initialization will depend on the platform, but the flow is similar: you provide where to send funds, how much, which asset, which chain, and (optionally) where to notify you on success.
Step 2: Place the Widget on the Landing Page
Paste the snippet into your HTML or your React component tree. Place it where you want the checkout to render. The widget will handle wallet connection, amount display, and payment flow.
Step 3: Handle Confirmation Callbacks
When a payment is confirmed on-chain, you receive a callback or webhook. The payload includes:
- Payer address
- Amount
- Asset and chain
- Transaction hash
- Timestamp
You can use this webhook to trigger fulfillment, grant access, or send a receipt.
Example webhook payload:
{
"payer": "0xWalletOfCustomer",
"amount": "50.00",
"asset": "USDC",
"chain": "polygon",
"txHash": "0xabc123...",
"timestamp": "2024-06-22T14:05:00Z"
}
A typical flow: your backend receives the webhook, checks the amount and txHash, and marks the user as paid.
What Happens If Payment Fails or Times Out
If the transaction fails (for example, due to insufficient funds or a gas error), the widget will display an error. The payer can try again. No USDC moves unless the transaction succeeds and is confirmed on-chain. If the payer closes the widget or navigates away, no payment is attempted.
Your webhook is only called on confirmed payment. You do not need to poll or reconcile partial attempts. If you want to handle abandoned checkouts, you can log widget open/close events via client-side hooks, but this is optional.
Customizing the Experience
You can customize the checkout flow by:
- Adjusting the displayed amount
- Passing a memo or reference field (to link the payment to a user or order)
- Styling the widget container to match your brand
- Using the API to generate dynamic amounts per user
- Handling multiple currencies or chains (for example, letting the user pick between Polygon and Base)
For most SaaS and digital content use cases, a fixed USDC amount and a single settlement address are sufficient.
Security: What You and Your Users Sign
The payer connects a wallet and signs a standard ERC-20 transfer. For one-time payments, no approval or recurring cap is set. No further actions can be taken by the widget or by you after payment. The funds settle directly to your address, and the transaction is final once confirmed.
Real-World Example: Digital Download for $50 USDC
Let’s walk through an example. You sell a digital PDF for $50 USDC. You embed the widget, specifying:
- Amount: $50
- Asset: USDC
- Chain: Polygon
- Settlement address:
0xMerchantPolygonAddress
A customer visits your landing page. The widget prompts them to connect their wallet. They see:
Pay 50 USDC to access your digital download.
They click Pay. Their wallet pops up, showing a USDC transfer to your address for 50 USDC. They confirm and sign the transaction. After a few seconds, the widget detects the transfer confirmation. Your webhook receives:
{
"payer": "0x4cD...F23",
"amount": "50.00",
"asset": "USDC",
"chain": "polygon",
"txHash": "0xb1a5...7d3f",
"timestamp": "2024-06-22T14:05:00Z"
}
Your backend looks up the order linked to this payment, unlocks the download, and optionally emails a receipt.
There is no risk of duplicate payment: one transaction, one delivery. If the customer tries to pay again, a new transaction is required and will result in a second delivery if you wish.
Integrating the Widget Into Modern Stacks
The payment widget works wherever you can insert HTML or a React component. This covers:
- Webflow or Wix custom code blocks
- Next.js or React landing pages
- Notion via HTML embed (with limited interactivity)
- Any static or dynamic site generator
If you want to trigger payment collection from your app, you can use the API to generate a payment session and embed the resulting widget or link.
For fulfillment, most teams use the webhook to unlock digital goods, move a user to a paid tier, or trigger downstream automation. Confirmed on-chain payment is your source of truth.
Best Practices
- Always specify a unique reference or order ID when possible. This links payment to a customer.
- Set clear payment amounts and asset on the widget. Do not change these after loading the widget.
- Monitor webhook delivery and retry logic. Webhooks are your confirmation, and should be idempotent.
- Display clear success and failure messages to the payer. Failed transactions do not result in funds moving.
- Audit your settlement address and access to it. The widget sends funds directly to this address. Protect its keys.
How We Handle Embedded Stablecoin Checkout at Reclack
We built Reclack to make non-custodial USDC payments simple for both merchants and payers. Our checkout widget works with one-time payments out of the box. It never asks for a private key or seed phrase. Every payment moves directly to your address on Arc, Base, Ethereum, or Polygon. You get webhooks for confirmed payments, and your users see a clear, final confirmation. Learn more or try it yourself at reclack.com.


