=== Hilt Pay for WooCommerce ===
Contributors: paulhilt, hilt
Tags: woocommerce, payments, checkout, digital products, memberships
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept USDC on Solana through hosted Hilt checkout for WooCommerce digital products, memberships, gated downloads, and paid community access.

== Description ==

Hilt Pay uses X-Hilt-Key authentication, checks the connection with GET /v1/products?limit=1, lets merchants choose Hilt checkouts from GET /v1/products, and creates hosted checkout handoffs through POST /v1/products/{product_id}/handoff-link. Mapped Hilt templates should use the configured WooCommerce identity type, which defaults to CUSTOM.

Support and landing page: https://www.hilt.so/woocommerce

The plugin is free. There is no WooCommerce surcharge. Standard Hilt plan pricing and transaction fees apply.

Includes:

* WooCommerce offsite payment gateway.
* Admin settings for API base, API key, Hilt identity type, webhook signing secret, webhook URL, and connection health check.
* Minimum API key scope guidance: read + execute only.
* Product and variation selector for choosing the Hilt checkout/template that should fulfil each WooCommerce product.
* Hosted checkout handoff creation through POST /v1/products/{product_id}/handoff-link.
* Webhook receiver at /?wc-api=hilt_pay.
* HMAC verification with X-Hilt-Signature and X-Hilt-Timestamp.
* Event-id deduplication.
* Order notes for Hilt success and failure events.
* Visible admin/order states for Hilt API failures and 429 rate limits.
* Customer user-meta sync for Hilt membership status and expiry when present.

== Installation ==

1. Place this folder in wp-content/plugins/hilt-pay-for-woocommerce.
2. Activate WooCommerce.
3. Activate Hilt Pay for WooCommerce.
4. Configure WooCommerce > Settings > Payments > Hilt Pay.
5. Choose Hilt checkouts for eligible digital products or variations.
6. Configure the Hilt webhook URL shown in settings.

== Checkout Blocks ==

The plugin declares Cart and Checkout Blocks compatibility and registers a no-build Checkout Blocks payment method bridge. It delegates processing to the WooCommerce payment gateway and expects WooCommerce to follow the returned offsite redirect URL.

== Screenshots ==

1. Hilt Pay settings configured with masked credentials and a successful connection health check.
2. WooCommerce product edit screen with the Hilt checkout selector open.
3. Buyer checkout with Hilt Pay selected and the Place order button visible.
4. Hosted Hilt checkout with wallet connection and payment UI.
5. WooCommerce order admin after a signed Hilt webhook updates the order to processing.

== Changelog ==

= 0.1.4 =
* Reworked the buyer checkout payment method panel with a cleaner Hilt card, USDC-only badges, and no tiny inline icon.
* Added the Hilt wordmark and surfaced zero-custody language in the buyer panel.

= 0.1.3 =
* Constrained the Hilt favicon size in classic WooCommerce checkout.

= 0.1.2 =
* Added Hilt favicon branding to classic checkout and Checkout Blocks.
* Updated merchant-facing copy to foreground USDC on Solana.
* Added plugin-row links for WooCommerce docs and X.

= 0.1.1 =
* Replaced raw product ID entry with a Hilt checkout selector.
* Changed the connection health check to use GET /v1/products?limit=1.

= 0.1.0 =
* Initial plugin build.
