> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Failed / Canceled

> ABC Collections has a failed renewal.

## Real-World Example

ABC Collections has a failed renewal. Super Admin opens Failed / Canceled, reviews the failed transaction and membership status, and decides whether follow-up is needed.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Membership payment fails or plan is canceled"] --> B["Record appears in Failed / Canceled"]
    B --> C["Super Admin reviews account"]
    C --> D{"Follow-up needed?"}
    D -->|Yes| E["Operations follows up"]
    D -->|No| F["Record remains for history"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B risk;
    class C system;
    class D decision;
    class E,F outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should show failed and canceled membership records.
* It should preserve transaction and membership context.
* It should support operational follow-up.

## How It Should Not Work

* It should not show failed memberships as active.
* It should not remove failed payment history.
* It should not confuse canceled plans with temporary failed-payment grace periods.

## Developer Notes

* Membership failure handling also appears in creditor billing and auto-renewal jobs.
* Keep status labels clear for operations users.

## Related App Areas

* `app/Livewire/SuperAdmin/Memberships/CancelledMemberships`
* `app/Console/Commands/ReprocessMembershipAutoRenewFailedCommand.php`
* `app/Jobs/MembershipPlanAutoRenewPaymentJob.php`
