# Phase 8: Payments and Invoice Actions

## Objective

Complete checkout and invoicing operations in V2 with all required payment methods and communication actions.

---

## Tasks

### 8.1 Payment methods

- Wallet payment flow.
- Stripe payment link flow.
- NowPayments (crypto) link flow.
- Cash and POS payment flow.

### 8.2 Link and QR UX

- Display generated payment links.
- Display QR code for Stripe/crypto links where applicable.
- Support copy/share actions.

### 8.3 Send to customer

- Send payment link and QR by email.
- Re-send action with audit trace.

### 8.4 Invoice operations

- Generate invoice.
- Send invoice.
- Regenerate invoice (replace existing generated artifact).

---

## File Impact (Expected)

- `app/Filament/V2/Pages/Orders/*`
- `app/Actions/AdminV2/Payments/*`
- `app/Actions/AdminV2/Invoices/*`
- reuse existing payment controllers/webhooks and invoice service

---

## Acceptance Criteria

- All 5 payment methods are available from one workflow.
- Payment links/QR are correctly generated and sent.
- Invoice generation/send/regeneration is operational and auditable.

---

## Tests

- Payment link generation tests per provider.
- Email send tests for payment links and invoices.
- Invoice regeneration behavior tests.
