◀Ghost of Payments Past
FLOW Automattic/woocommerce-payments #12407 · ★ 191Ignore a late invoice.payment_failed for an already paid renewalA real, public pull request, signed as made with Claude Code. See it on GitHub ↗
IN THE WORLD

Stops paid subscriptions from being cancelled by late payment-failure notices

REACH

Built by Automattic's WooCommerce team, WooPayments powers checkout and subscriptions on over 800,000 active WordPress online stores worldwide.

WHAT IT MEANS

Customers who already paid their subscription renewal won't have their order marked failed, their subscription put on hold or cancelled, or receive a false 'Pay Now' email.

  • Automatticmakes it
  • WooCommercemakes it
RED · how I did it
  • Full payment marks the renewal order Paid.
  • A payment with an amount mismatch puts the order On Hold.
  • GONE Any early failure alert marks the order Failed, even if already Paid or On Hold.
  • GONE A fourth failure alert cancels the order and subscription, even if already Paid.
GREEN · how I do it now
  • Full payment marks the renewal order Paid.
  • A payment with an amount mismatch puts the order On Hold.
  • NEW Once an order is Paid or On Hold, any failure alerts for it are ignored.
  • NEW If not Paid or On Hold, early failures mark it Failed and a fourth cancels it.

WHERE In an online store's My Account page and email inbox when a recurring subscription renews.

SCENE You subscribe to monthly coffee beans. Your first card charge declines, then goes through. Hours later, a delayed failure notice from the first try reaches the shop.

Pending
The renewal invoice is ready and waiting for payment.
Paid
Your renewal payment succeeded and your subscription stays active.
On hold
Payment arrived with an amount mismatch and awaits store review.
Failed
The renewal is marked unpaid and the store asks you to pay again.
Cancelled
Too many failed attempts; your subscription is cancelled for good.
What can happen
Paid in full · Odd amount · Fail 1-3 · 4th failure