# Diluted Test Order for WooCommerce

Adds a fake payment method so you can test the full checkout flow without a real payment provider. Ideal for staging, QA and local development.

| | |
| --- | --- |
| **Requires WordPress** | 6.0+ |
| **Tested up to** | 6.9 |
| **Requires PHP** | 8.0+ |
| **Requires Plugins** | WooCommerce |
| **Stable tag** | 1.0.0 |
| **License** | GPLv2 or later |

## Description

This plugin adds a WooCommerce payment method that completes checkout without a real payment provider. Orders are saved and marked paid like a normal purchase, only the payment is fake.

- **Admin-only** – Only users who can `manage_woocommerce` (typically administrators and shop managers) see the method at checkout. Guests and customers never see it.
- **Paid immediately** – Orders complete as if payment succeeded. Stock updates, emails, and other post-payment behavior run as usual.
- **Works everywhere you check out** – Shortcode/classic checkout and the Cart & Checkout blocks.

## Installation

1. Install and activate WooCommerce.
2. Upload the plugin to `wp-content/plugins/diluted-test-order-for-woocommerce/` or install via WordPress admin.
3. Activate the plugin.
4. Go to **WooCommerce → Settings → Payments** and enable **Test order (admin only)**.

## Usage

1. Sign in as a user with the **Shop manager** or **Administrator** role (or any role that includes `manage_woocommerce`).
2. Add products to the cart and open checkout.
3. Choose the test payment method in the checkout, the default label is **Test order (fake payment)** unless you changed it under the gateway settings.
4. Place the order. You are redirected to the order received (thank-you) page; the order is recorded as paid.

You can customize the **Title** and **Description** shown at checkout under **WooCommerce → Settings → Payments → Test order (admin only)**.

## FAQ

**Who can see the test order payment method?**  
Only users with the `manage_woocommerce` capability (typically administrators and shop managers).

**Is this compatible with classic and block checkout?**  
Yes. The plugin is compatible with the shortcode checkout and the new block checkout.

**Should I leave this enabled on a live store?**  
The gateway is only offered to users who can manage WooCommerce, so customers never see it. Still, disable or remove it on production if you do not need it—fewer moving parts and a clearer payment settings screen.

## Changelog

### 1.0.0

- Initial release.
- Test order payment method (admin-only).
