Skip to content

Subscription Lifecycle: Pauses, Plan Changes, Dunning and Refunds

Learnomy overviewFree + ProGet Learnomy →

Pro feature. Requires Learnomy Pro with the Membership Pro extension active.

Once someone subscribes, Membership Pro handles what happens next: members can switch plans with fair credit for unused time, and the site keeps their access safe when a renewal charge fails or a refund is issued. This page covers the ongoing lifecycle. For plans, gift memberships, and the retry-cadence and refund settings themselves, see Membership plans.

  • Let a member pause a membership no payment processor bills and resume it later, with the paid time they had left preserved. Not on Stripe, PayPal or WooCommerce: see Pause and resume.
  • Let a member switch to another plan and see a fair-credit proration quote – credit for unused days on the old plan, charge for the new plan – before they commit.
  • Apply a plan change immediately, or schedule it to take effect at the end of the current billing period.
  • Retry a failed renewal charge automatically on a cadence you choose, instead of cancelling on the first failure.
  • Cancel a subscription automatically only after the last retry fails.
  • Issue a refund against a subscription payment. A full refund cancels the membership it paid for; a partial refund is money only unless you choose to cancel too.
  • Keep a full audit trail of every pause, resume, plan change, refund and gift on the subscription, readable by both the member and the site owner. See Where the audit trail is visible.

Pause works on a paid membership that no payment processor bills on a schedule of its own, or whose payment module can hold the billing (subscription_pause, see Payment gateways for developers). Where it is not offered, the member sees no Pause subscription button.

It is not offered on a subscription that Stripe, PayPal or WooCommerce bills: they charge on their own schedule, so the charge would come anyway. Those members cancel at the end of the period instead. It is also not offered on a gift or a membership you gave by hand, on a free or lifetime plan, on a membership another store bills, or on one already set to end.

  1. The member opens their subscription on the membership manage page (or the billing area of My Account).
  2. They click Pause. Access pauses now and no charge is taken during the pause.
  3. When they click Resume, access comes back and the billing period is extended by however long the pause lasted, so they do not lose paid time.

A pause can also carry an auto-resume date, in which case Learnomy resumes it for them on that date.

A plan that is free on every billing cycle has nothing to pause, so a member on it sees no Pause button, and no Update payment method, Manage payment method or “Billed via” line either, on the membership page or on Billing & orders. They can still cancel, or upgrade with Change plan.

  1. On the same manage surface, the member clicks Change plan.
  2. Learnomy shows the plans they can switch to and a live quote that matches what their payment provider does: the credit for unused days and the charge for the new plan, what is Due today, and the date and amount of their Next payment.
    • Stripe, same billing length (monthly to monthly, yearly to yearly): they keep their current period and nothing is charged today. Stripe adds the difference (or the credit) to the next payment, so “Due today” reads $0.00 and “Next payment” shows the new price plus the difference.
    • Stripe, different billing length (monthly to yearly, or yearly to monthly): the figures are Stripe’s own preview. Stripe usually charges nothing today: it bills the new price (with the credit and charge, when fair credit is on) at its next billing date, and the dialog shows that date. If Stripe would charge something today, that amount is shown as Due today.
    • PayPal: see below.
    • Test gateway: the net of credit and charge is due today.
  3. They choose when it takes effect:
    • Immediately – the provider charge or credit runs now and they move to the new plan straight away.
    • At the end of my billing period – they keep the current plan until the period ends, then the switch and the next charge happen on the new plan. Learnomy schedules this and executes it automatically when the period ends.
  4. On confirm, Learnomy applies the change, moves them onto the new plan’s courses, and removes access to any courses that were only on the old plan.

With the site’s plan-change (fair credit) setting off, there is no credit for unused time, but Stripe or PayPal is still told the new plan, so the member is billed what their plan says. The dialog shows no credit or charge lines and no “difference”; it says “Your plan changes now. You pay $49.00 from your next payment on December 21, 2026.” and the confirmation reads “Plan changed to Pro. You pay $49.00 from your next payment on December 21, 2026.” If Stripe would charge something today (it can for a change of billing length), the dialog shows that amount as Due today and says “Your new billing period starts today. You pay $190.00 now, then $190.00 on …”.

A member can also start the switch from the pricing page: Switch to this on another plan opens this Change plan window with that plan already selected. It is offered only to members whose payment method supports an in-place switch (Stripe, or the Test gateway while it is enabled). PayPal members switch at the end of their period instead (below). Other members see Manage current plan. Free and one-time (lifetime) plans are not switch targets. A member whose payment failed is asked to update their payment method first, and a paused member to resume or cancel first. A member whose subscription bills in a currency the site no longer sells in (you changed the currency since they subscribed) cannot switch: plans are now priced in the new currency, and they are told to cancel and subscribe to the new plan instead.

PayPal (and any gateway without an in-place switch): the member changes plan when their current period ends. On the pricing page, another plan’s card says “Nothing to pay today. It starts on , when your current period ends.” with Switch to when this period ends. That opens the normal checkout for the new plan, which reads Due today $0.00 and “Then $49.00/month from ”. The member approves the new subscription at PayPal; PayPal takes nothing until that date. Their current membership then ends on its period end (access continues until then), and the new one starts that day with the new plan’s courses, so there is no gap and no double charge. Until the date, the membership page says “Your plan changes to Pro on . Nothing is charged until then.” with Keep my current plan, which cancels the new subscription at PayPal and keeps the current one renewing.

When you update to 2.4.0, a PayPal plan change that 2.3.x queued for the period end (or one waiting for PayPal approval) is closed with an audit note. The member stays on their plan, nothing is charged, and their pricing page offers the switch at the period end. There is nothing for you to do.

Payment retries when a renewal fails (automatic)

Section titled “Payment retries when a renewal fails (automatic)”

When a renewal charge fails, the subscription goes past-due and Learnomy schedules retries on the cadence set in the Billing & retries settings:

  • Conservative – retries at 14, 28, and 56 days.
  • Standard – retries at 7, 14, and 28 days (default).
  • Aggressive – retries at 3, 7, and 14 days.
  • Off – no retries; the subscription is cancelled on the first failure.

If a retry succeeds, the member is billed, the period is extended by their own term (a yearly member gets a year), and the remaining retries are cancelled. If the membership is paid again some other way (PayPal’s own retry, a new card, Stripe’s dashboard), the remaining retries stand down at once, whichever provider it is, and a retry that comes due on a membership that is no longer past due does nothing. If the final retry fails on a membership still past due, the subscription is cancelled. Every attempt is logged so you can see what happened.

  1. From the transactions or refundable-transactions list, an admin issues a refund against a subscription payment.
  2. Learnomy calls the gateway’s refund API and records a refund transaction linked to the original charge.
  3. The Issue refund screen refunds the whole payment, so it cancels the membership that payment paid for. A course the member also holds another way stays open. Before you confirm, the dialog lists what is cancelled, what the member keeps and why, and what happens to the instructors’ share. For a partial refund, use Refund on the payment in LMS commerce > Transactions: it returns money only unless you tick Also cancel what this payment granted. If another refund changed the refundable amount while a dialog was open, the refund is refused rather than made twice. The full rule is in Transactions.

Every pause, resume, plan change, refund and gift redemption is recorded, and both sides of the conversation can read it. None of these events is a payment, so none of them appears in an order or payments table - this is the record that explains them.

Surface Who sees it What it covers
Billing history, below the order history on the member’s account billing page (/account/billing/) The member, for themselves only The 25 most recent changes across all of their subscriptions
Change history, below the payments table on a subscription in LMS commerce > Subscriptions The site owner The 50 most recent changes on that one subscription

Both show the same three columns: the date the change took effect, what the change was (Plan changed, Paused, Resumed, Refunded, Gift applied), and the detail - for a plan change, the plan it moved from and the plan it moved to.

Neither surface appears when there is nothing to show, so a member who has never paused or switched sees no empty section. Payment retry attempts are a separate record and are not in these tables; see the admin views note below.

Member-facing detail is documented in Certificates and Billing; the owner’s panel in Subscriptions.

The site-wide controls for retries and plan changes live in Membership Pro’s Billing & retries settings card, documented in Membership plans. In short:

Setting What it controls
Payment retries The retry cadence (Conservative / Standard / Aggressive / Off) used when a renewal charge fails.
Plan changes Whether switching plans mid-cycle credits the unused time from the old plan (fair credit on) or not (off). The payment provider is told the new plan either way.

These apply to all plans on the site and cannot be overridden per plan.

Admin views:

  • A Paused subscriptions tab lists paused members and lets an admin resume any of them.
  • Failed-payment subscriptions show up in LMS commerce > Subscriptions filtered to Payment failed; the per-attempt retry history itself is available over the REST API only (GET /memberships/dunning-attempts/{sub_id}), not as an admin screen today.

Services (Learnomy_Pro\Extensions\Membership_Pro):

  • Pause_Service::pause( $sub_id, $resume_at = null ) / ::resume( $sub_id ) – pause sets status paused; resume extends current_period_end by the paused duration. An optional auto-resume is scheduled via Action Scheduler (learnomy_pro_auto_resume_subscription).
  • Proration_Service::calculate( $sub, $new_plan, $effective = null ) – returns the credit / charge / net quote (provider-independent). provider_for( $sub ) returns the Stripe / PayPal / Test proration provider that executes it.
  • Plan_Change_Service::change( $sub_id, $new_plan_id, $effective ) – effective is immediate or scheduled (scheduled runs at current_period_end via Action Scheduler).
  • Dunning_Service – listens on Free’s learnomy_subscription_past_due; schedules retries (learnomy_pro_dunning_retry) per the learnomy_pro_dunning_cadence option; records each in lrn_pro_dunning_attempts.
  • Refund_Service::refund( $transaction_id, $amount, $reason ) – refunds via the provider, records a refund transaction, and honours the learnomy_pro_refund_cancels option.

Options:

  • learnomy_pro_dunning_cadence (conservative / standard / aggressive / off).
  • learnomy_pro_proration_enabled (bool).

Actions fired:

  • learnomy_subscription_paused, learnomy_subscription_resumed.
  • learnomy_pro_plan_changed, learnomy_pro_plan_change_queued, learnomy_pro_plan_changed_at_provider, learnomy_pro_plan_change_failed.
  • learnomy_pro_refund_issued (every refund Learnomy records).

Filters:

  • learnomy_pro_allow_pause – gate whether a given subscription may be paused.
  • learnomy_pro_proration_provider – deprecated since 2.4.0; a gateway declares subscription_plan_change and implements change_plan() instead.

REST (learnomy-pro/v1):

  • POST /memberships/me/pause (refuses a free plan with HTTP 422 learnomy_pro_free_plan_not_pausable and a plain message), and resume through Free’s POST /learnomy/v1/memberships/me/resume (Pro participates via the learnomy_membership_resume_paused filter).
  • POST /memberships/me/change-plan (+ read-only /change-plan/options and /change-plan/quote).
  • GET /memberships/subscription-changes (member-scoped) returns the caller’s own change history - the same rows behind Billing history and Change history.
  • GET /memberships/dunning-attempts/{sub_id} and /retry-now (admin).
  • GET /admin/refundable-transactions (admin); the refund itself runs through Free’s canonical POST /learnomy/v1/admin/transactions/{id}/refund so learnomy_payment_refunded still fires.