=== USDT Payments Gateway for WooCommerce ===
Contributors: usdt-payments
Tags: woocommerce, usdt, trc20, crypto payments, payment gateway
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept USDT TRC20 payments in WooCommerce using USDT Payments.

== Description ==

USDT Payments Gateway for WooCommerce allows online stores to accept USDT TRC20 payments through the USDT Payments gateway.

Customers are redirected to a hosted payment page. After the transaction is confirmed, USDT Payments sends a signed webhook to WooCommerce and the order is updated automatically.

Features:

* USDT TRC20 checkout for WooCommerce
* Hosted payment page
* Signed API requests with HMAC SHA256
* Signed webhook verification
* Automatic order confirmation after payment
* TXID saved in WooCommerce order metadata
* Optional debug logging in WooCommerce logs

To use this plugin, create a merchant account at usdt-payments.com and create a project to receive your API Key and API Secret.

== Installation ==

1. If you don't have a merchant account yet, register at https://usdt-payments.com and create a project.
2. Upload the plugin ZIP in WordPress admin: Plugins > Add New > Upload Plugin.
3. Activate the plugin.
4. Go to WooCommerce > Settings > Payments > USDT Payments.
5. Enter your API Key and API Secret.
6. Copy the Webhook URL from the plugin settings.
7. Paste the Webhook URL into your project settings in the USDT Payments merchant dashboard.
8. Save settings and make a test payment.

== Frequently Asked Questions ==

= Where do I get API credentials? =

Register at usdt-payments.com, create a project and copy the API Key and API Secret from your merchant dashboard.

= What webhook URL should I use? =

Open WooCommerce > Settings > Payments > USDT Payments and copy the Webhook URL shown in the settings.

= Does the plugin verify webhook signatures? =

Yes. The plugin verifies the X-Signature header using HMAC SHA256 and your API Secret.

= Why is the Gateway URL field not editable? =

The plugin is built for USDT Payments, so the gateway URL is fixed to https://usdt-payments.com.

= My paid order does not unlock the product or listing. What should I check? =

Set Paid order status to Completed in the plugin settings. This is useful for sites that activate listings, memberships or digital services only when the order status is completed.

== Screenshots ==

1. USDT Payments settings in WooCommerce.
2. USDT TRC20 payment method at checkout.

== Changelog ==

= 1.0.2 =
* Added paid order status setting.
* Fixed gateway URL as a disabled field.
* Added WordPress.org-ready readme and GPL license metadata.
* Added WooCommerce HPOS compatibility declaration.

= 1.0.1 =
* Added fixed gateway URL field.
* Improved webhook handling.

= 1.0.0 =
* Initial release.
