A crypto subscription upgrade should change access only after its agreed payment condition is met. A downgrade should have an explicit effective date, not silently erase time the customer already paid for. Keep the plan-change request, adjustment payment and next renewal separate.
This guide recommends merchant-side controls for subscriptions paid in USDC or USDT where the selected asset and network are available. It is not a description of built-in Yolfi proration, automatic refunds or a plan-change API. For the wider membership process, see the recurring stablecoin billing playbook.
Choose when the new plan takes effect
Offer a small number of understandable choices. A next-period change is simpler to operate because it leaves the purchased period intact. An immediate paid upgrade requires an adjustment quote and a clear rule for what happens while payment is pending.
| Change | Recommended access rule | Payment and renewal rule |
|---|---|---|
| Upgrade next period | Keep the current tier until the new period begins | Quote the new renewal price; activate the new tier after its required payment is confirmed |
| Upgrade during a paid period | Keep the current tier until the adjustment is confirmed | Collect the agreed difference; retain the renewal date unless the quote explicitly changes it |
| Downgrade next period | Preserve the purchased tier through its stated end | Schedule the lower tier and its price for the next period |
| Immediate downgrade by agreement | Record the reduced benefits and effective time | Decide any credit or refund separately; do not assume either happens automatically |
These are suggested business rules, not universal legal requirements. Check your terms and applicable obligations before changing paid access or refund treatment. Explain capacity consequences too: fewer seats or a lower storage limit should not trigger an unannounced data deletion.
Freeze a quote before requesting another payment
Save a versioned change request in your own application. Record the customer and subscription, old and new plan, already-paid period, requested effective time, quote expiry, amount due now and next renewal price. Show the customer those same terms before they accept.
Keep the invoice currency distinct from the payment asset. A price difference expressed in dollars is not automatically the same number of USDC or USDT. If conversion is involved, state the quote source, validity and exact asset amount supplied by the actual payment flow.
A quote should answer five questions:
- What benefits change, and when?
- What amount is due now, in which currency or asset?
- What happens to unused paid time?
- What is the next renewal date and price?
- What happens if the adjustment is unpaid or confirms after the quote expires?
Do not mutate an existing unpaid request into a different price. Retain the original record and use an explicit replacement process that checks for an earlier transfer. The expired-invoice guide covers late-payment review.
Calculate proration under one published policy
Proration allocates a price to part of a service period. There is no single rule that every billing system applies. Chargebee's proration documentation distinguishes day-based and millisecond-based calculation. Its settings describe Chargebee, not Yolfi.
For your own policy, define the time basis, timezone, period boundaries, rounding and treatment of discounts before calculating. Use the customer's actual paid terms; do not credit an unpaid period as though money had arrived.
Here is a deliberately simplified example, not a live product quote. Both plans cover the same fixed 30-day period, the old period was fully paid, exactly 15 days remain, and the agreed policy keeps the original renewal date. Prices are denominated directly in USDC; tax, discounts, fees and conversion are excluded.
| Calculation | USDC |
|---|---|
| Old plan: 30 × 15 / 30 unused value | 15 |
| New plan: 60 × 15 / 30 remaining-period value | 30 |
| Additional payment: 30 − 15 | 15 |
| Next full renewal at the new price | 60 |
The 15 USDC unused value is an offset inside this calculation, not an automatic wallet refund or a second spendable credit. Do not subtract it again at renewal. A calendar month is not always 30 days; use the actual basis your policy promises. Apply exact decimal or base-unit arithmetic as described in the payment precision guide.
Verify Yolfi's role before implementing the change
The current Yolfi subscriptions page describes a renewal payment each billing cycle, reminders and customers paying from their own wallet. Funds go directly to the merchant wallet. That establishes a payment-request renewal model, not permission to debit a wallet automatically or proof of a built-in proration engine.
For an agreed one-time adjustment, evaluate payment links or the documented server-created checkout flow according to your integration. Keep the adjustment linked to the change request and separate from the regular renewal. Confirm the available asset and network in the actual payment page; do not infer support from a generic coin page.
Before launch, verify how your current integration changes future renewal requests, stops obsolete requests and exposes confirmed payments. If it cannot represent the intended change safely, use a documented manual process or offer a next-period change instead. Do not invent an update endpoint or assume editing your own plan record updates Yolfi.
Apply payment and access changes exactly once
Use a merchant-side operation reference for each accepted change. A safe implementation sequence is:
- Authenticate the customer and verify their authority over the subscription.
- Save the accepted quote and prevent a competing change from overwriting it.
- Create or associate the required adjustment payment through the documented integration.
- Keep the existing paid entitlement while that payment is unresolved, under the agreed terms.
- Verify the payment's request relationship, asset, network, amount and confirmation state.
- Apply the new entitlement once and record which payment authorized it.
- Update future renewal work using verified controls, then read back the resulting schedule.
- Send confirmation with the effective time, new benefits and next renewal terms.
Do not grant the upgrade from a browser redirect, wallet screenshot or a customer's transaction hash alone. For Yolfi Checkout Sessions, the lifecycle documentation says COMPLETED means an Invoice was linked; payment may still be pending. Its fulfillment guidance requires verified payment.confirmed processing.
A database transaction can protect your own records, but it does not make an external billing update atomic. Track each step and retry safely. If payment is confirmed but the schedule update fails, preserve the payment evidence, flag the incomplete change and assign an owner. Do not request payment again. Use the webhook idempotency guide to prevent duplicate access changes.
Resolve overlapping renewals before closing the request
A renewal can become payable while an upgrade is pending. Identify which price and service period each request covers. Do not leave the customer with two apparently valid instructions for the same obligation.
| Exception | Safe merchant response |
|---|---|
| Old renewal is already paid | Recalculate from the actual paid period; do not collect the same time twice |
| Adjustment confirms after quote expiry | Review the received payment against the accepted terms before changing access |
| Customer requests another plan while payment is pending | Resolve or explicitly supersede the first request without losing its payment history |
| Downgrade meets an unresolved upgrade | Serialize the decisions and tell the customer which change remains active |
| Extra funds require a return | Use a separately approved refund process, not a negative renewal amount |
Test delayed notifications, duplicate confirmations, an unpaid adjustment and a failed schedule update before offering self-service changes. Check that the account page, access permissions, renewal request and customer message agree. Route any return through the refund checklist.
FAQ
Can USDC or USDT subscriptions support prorated upgrades?
A merchant can design a prorated adjustment when the chosen payment method is available. The calculation, confirmed payment, entitlement update and future renewal must be coordinated. This guide does not establish automatic Yolfi proration.
Should an upgrade reset the billing date?
Only if the accepted quote says so. Keeping the original date and charging a remaining-period difference is one model; starting a new period is another. Do not combine their calculations or charge both full prices without explaining the treatment of unused time.
Is a downgrade credit the same as a refund?
No. A credit is a recorded adjustment to an obligation under your policy. A wallet refund is a separate transfer with its own approval and destination checks. Tell the customer which outcome applies.
What if the customer never pays the upgrade adjustment?
Do not apply a paid upgrade merely because it was requested. Preserve the current paid access under its terms, expire the quote according to policy and check for pending or late transfers before replacing instructions.
Conclusion: one change, one payment decision, one schedule
Make the effective date and money treatment explicit before requesting funds. Preserve already-paid access, verify any adjustment and ensure only the intended renewal schedule remains. Start with next-period changes if your integration cannot yet coordinate immediate upgrades safely; a smaller, truthful offer is better than an upgrade that charges correctly but renews the wrong plan.
