Skip to content
stablecoin-paymentsusdc-checkoutintegration
Joshua C.

Embed USDC Payments on Your Landing Page: Step-by-Step

Learn to embed non-custodial USDC payments into your landing page. Compare embedded vs hosted checkout, see step-by-step integration, and real billing flows.

Embed USDC Payments on Your Landing Page: Step-by-Step

Adding onchain payments to your own landing page lets you own the checkout experience. If you already accept USDC or want to, embedding checkout on your site is a practical way to do it. You do not need to redirect to a hosted page. You can present the payment flow directly where your customers sign up or upgrade.

Hosted Checkout vs Embedded Checkout: What Changes?

Both hosted and embedded checkouts use the same payment flow. The difference is control and user experience. A hosted checkout takes the customer off your site to a Reclack page. An embedded checkout puts the wallet connect, approval and payment steps inside your UI.

With embedded checkout, you control layout, branding and messaging. The customer stays on your domain. Payment still settles onchain, from the payer’s wallet to your settlement address. Reclack never takes custody or asks for a private key. You keep the customer in your flow from start to finish.

When to Use Embedded Checkout

You want to embed stablecoin payments when:

  • You want the checkout on your domain, no redirects.
  • You want to add custom messaging or upsells after payment.
  • You want to match the look and feel of your app or product.

If you do not need these, hosted checkout is faster to ship. Use hosted links for fast launches, one-off invoices or MVPs. Use embedded checkout when you want full control.

What an Embedded Checkout Needs

The flow for an embedded checkout is:

  1. Render the payment widget or component.
  2. Customer connects their wallet.
  3. Customer sees the amount, chain and payment details you set.
  4. For recurring or capped authorizations, the customer signs a bounded cap.
  5. Customer confirms and signs the payment.
  6. You receive a webhook or API callback when the onchain payment is final.

You do not store or process seeds or private keys. The customer signs directly from their wallet, in browser or on device.

Embedding the Reclack Checkout Widget

Reclack provides an embeddable widget. You add it to your landing page with a small script tag and a container div. You control the amount, currency, chain, and what happens after payment.

Example: Embedding a $99 USDC Payment on Base

Suppose you sell an API key for $99 USDC, payable on Base. You want the customer to pay directly from your landing page.

  1. Register your product and price in your Reclack dashboard or via API.
  2. Get the widget embed code, which includes your payment link ID.
  3. Place the following snippet where you want the checkout to appear:
<div id="reclack-checkout"></div>
<script src="https://js.reclack.com/widget.js"></script>
<script>
  ReclackWidget.render({
    container: '#reclack-checkout',
    paymentLink: 'pl_abc123', // Your unique payment link ID
    onSuccess: function(result) {
      // Unlock the API key, redirect, or show a thank-you
      window.location.href = '/thank-you';
    },
    onError: function(error) {
      // Show an error or fallback screen
    }
  });
</script>
  • pl_abc123 is the payment link ID you get from Reclack.
  • The widget handles wallet connection, cap approval if needed, and payment.
  • When payment is final (onchain confirmation), onSuccess fires. You unlock the product or provision access.

What the Customer Sees and Signs

  • The customer connects their wallet (e.g. MetaMask).
  • The amount ($99 USDC), the chain (Base), and your settlement address are shown.
  • For a one-time payment, the customer signs a transaction sending USDC to your address. For a recurring flow, they also sign a bounded cap for the period.
  • After payment, the widget displays confirmation and fires your success callback.

Handling Payment Failures

An onchain payment can fail or be abandoned. Common cases:

  • The customer closes the wallet before signing.
  • There is not enough USDC or gas in the wallet.
  • The customer rejects the transaction.

The widget’s onError callback fires with an error code. You can display a retry button or offer fallback options (e.g. a support link).

If the payment is never confirmed onchain, no funds move. If the payment partially completes (e.g. wallet signs but the transaction is dropped), the widget detects onchain status. There are no chargebacks. If the customer pays, you get a webhook and the payment is final.

Using the Reclack API for Custom Flows

If you want to generate payment links or invoices programmatically, use the Reclack API. This lets you:

  • Create payment links or invoices with custom metadata.
  • Dynamically set the amount, product, or customer.
  • Track payment status via webhooks or polling.

Example: Creating a Payment Link via API

POST /v1/payment-links
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

{
  "amount": "99000000", // 99 USDC, 6 decimals
  "currency": "USDC",
  "chain": "base",
  "description": "API Key Access",
  "metadata": {
    "customer_id": "cus_xyz",
    "plan": "pro"
  }
}

The response returns a payment_link_id. Use this in the widget embed.

Webhooks: Know When Payment Arrives

When a payment is confirmed onchain, Reclack sends a webhook to your server. The payload includes:

  • Payment link or invoice ID
  • Amount, chain, and wallet addresses
  • Onchain transaction hash
  • Timestamp of confirmation

You use this to unlock access, provision the product, or trigger onboarding.

What You Control in Embedded Checkout

  • Design and placement: The widget fits in your flow, on your page.
  • Product and pricing: Set the amount, chain, currency and description.
  • Post-payment action: Your code runs when payment settles.
  • Error handling: Show your own errors, support, or recovery flow.

You do not control the wallet software or the blockchain. You do not hold funds. You cannot reverse a payment once confirmed onchain.

Real World: SaaS Upgrade with Embedded USDC Checkout

Consider a SaaS product that lets users upgrade to Pro for $49 USDC per month. You want to:

  • Show the upgrade button.
  • Let the user pay from their wallet, inside your app.
  • Grant Pro status when payment is confirmed.

Steps:

  1. Create a recurring payment link for $49 USDC/month, capped at $49 per period.
  2. Embed the widget with that link in your upgrade modal.
  3. When the user pays, unlock Pro features and update the UI.
  4. Listen for webhooks to handle renewals and failed payments.

The user signs a one-time cap approval for $49 per month. Each renewal, the widget triggers a new transaction, up to the cap. If the cap is reached or the user revokes approval, the payment stops. Funds always move from the user’s wallet to your address. No custody, no private keys.

Security and Settlement

  • All payments are non-custodial. You never handle customer funds.
  • Customers never share private keys or seed phrases.
  • Each transaction is final when confirmed onchain.
  • There are no chargebacks. Refunds, if offered, are a new outbound transaction.

Embedding Checkout: Best Practices

  • Show clear pricing and the selected chain before payment.
  • Make sure your webhook handler is idempotent: only unlock access on confirmed payments.
  • Handle error states: guide users if they lack gas or USDC.
  • Test with small amounts on testnets (if available) before mainnet.
  • Use metadata to track customers and link payments to your internal accounts.

Summary: Embedded USDC Payments with Reclack

We make it possible to embed stablecoin checkout in any landing page or app, without handling custody or private keys. Payment flows remain secure and final, with all the UI control you want. To learn more or try it, visit reclack.com.

stablecoin-paymentsusdc-checkoutintegration