Prevent Double Charging When Upgrading Onchain USDC Subscriptions
A developer's guide to allow mid-cycle USDC subscription upgrades onchain. Covers proration, preventing double charges, and the practical settlement flow.

Mid-cycle subscription upgrades are a common SaaS request, but onchain recurring billing has no built-in proration or refund. If your customer on Arc, Base, Ethereum or Polygon wants to upgrade their USDC subscription before the cycle ends, you need to prevent accidental double charges and ensure correct settlement. This guide covers the mechanics with worked examples.
Why Double Charging Happens During Onchain Upgrades
The workflow for a typical onchain subscription is simple: the customer approves a bounded USDC cap, and settlement pulls the agreed amount at renewal. If they upgrade mid-cycle, you may be tempted to trigger a new payment for the upgraded tier, but this risks double billing: one charge for the unused portion of the old tier, and another for the new plan that overlaps.
There is no way to reverse a confirmed onchain payment. This means you need a process to prevent duplicate settlement or overcollection.
Upgrade Methods: Replace, Prorate or Stack
There are three common approaches when a customer upgrades mid-cycle:
- Replace: Cancel the old subscription, then start a new one. The customer pays the full new price immediately, forfeiting any unused portion already paid.
- Prorate: Bill only the difference for the rest of the period, then charge the new plan at the next renewal.
- Stack: Start the new subscription now, but schedule the higher charge to begin at the next cycle. The customer continues on the old rate until renewal.
Each has tradeoffs for customer experience and accounting. Proration is the most customer-friendly, but requires tracking how much value is “left” in the current period. Replace is simpler but less fair. Stack avoids double charges, but delays access to the upgrade.
Calculating the Prorated Charge: A Worked Example
Let’s walk through a real scenario. Assume:
- The customer is on a Basic plan, $100 USDC/month, paid on the 1st.
- On June 15, they want to upgrade to Pro at $200 USDC/month.
- The billing cycle runs until July 1.
Step 1: Determine Used and Unused Value
- Days in cycle: 30 (June 1 to July 1)
- Days used: 14 (June 1 to June 15)
- Days remaining: 16
Basic plan cost per day: 100 USDC / 30 ≈ 3.33 USDC Unused value: 16 days × 3.33 USDC ≈ 53.28 USDC
Step 2: Calculate Upgrade Cost for Remaining Cycle
Pro plan cost per day: 200 USDC / 30 ≈ 6.67 USDC Upgrade cost for remaining 16 days: 16 × 6.67 ≈ 106.72 USDC
Net additional charge: 106.72 (Pro for 16 days) – 53.28 (unused Basic) = 53.44 USDC
Step 3: Onchain Settlement
- Option A: Bill 53.44 USDC immediately for the upgrade and update the next cycle to charge 200 USDC on July 1.
- Option B: Cancel the old subscription and start a new one for 200 USDC, but the customer forfeits the unused Basic payment (not recommended for SaaS).
Step 4: Customer Authorization and Cap
If you use recurring billing caps, the customer must approve the new cap for 200 USDC per cycle before the next renewal. For the prorated upgrade, you can send a one-time invoice or use a one-time payment link for 53.44 USDC. Both flows are supported by non-custodial checkout.
Preventing Double Charging: What to Avoid
- Do not trigger a new full-cycle charge for the upgrade before the current cycle ends, or you collect double for the overlap.
- Do not attempt to refund the unused cycle portion onchain. Settlement is final. If you want to offer credit, track it in your own ledger for future use.
- Do not leave the old subscription cap in place if the customer cancelled or upgraded. Remove or update the approval so there is no risk of the old rate being charged again.
Implementing the Upgrade Flow (API and Webhook Example)
Assume you use Reclack’s API and webhooks. The key steps are:
- Detect upgrade event from your app (customer requests plan change).
- Calculate proration as above.
- Issue a one-time invoice for the prorated amount (e.g. 53.44 USDC).
- Prompt the user to approve the new recurring cap for the upgraded plan (e.g. 200 USDC), which Reclack enforces at the next cycle.
- Listen to webhook events for payment confirmation.
- Update internal account state: set plan as upgraded immediately, set next renewal to charge the higher rate.
Example: Issue a one-time payment link using Reclack’s API.
POST /api/invoices
Content-Type: application/json
{
"customer": "0xC0FFEE...",
"amount": "53.44",
"currency": "USDC",
"chain": "base",
"description": "Upgrade to Pro plan (prorated)"
}
You would then send the resulting payment link to the customer. Once the payment is settled (see webhook event), you update their plan.
To set the new recurring cap:
- Direct the customer to your upgrade flow, which triggers Reclack’s recurring cap approval for 200 USDC on the next renewal date.
- Confirm new cap is active before disabling the old one.
Handling Edge Cases
- Upgrade near renewal: If the upgrade happens within a day or two of the next billing date, consider skipping proration and just schedule the higher charge at renewal.
- Customer delays approving new cap: Do not cancel the old cap until the new one is set. Otherwise, you risk failed renewal.
- Multiple upgrades in a period: Always recalculate proration based on actual usage and what has been paid.
Making This Work With Reclack
We built Reclack so that mid-cycle upgrades do not risk double charging. You can issue a one-time invoice for the prorated difference or schedule the plan change at the next renewal. All recurring caps are explicit and signed by the customer, so there is no risk of overcollection. For examples and API docs, see reclack.com.


