=== Cregis Payment for WooCommerce ===
Tags: cryptocurrency, payment, woocommerce, cregis, crypto payment
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cregis Payment for WooCommerce is a plugin that integrates the Cregis cryptocurrency payment gateway with your WooCommerce store.

== Description ==

Cregis Payment for WooCommerce is a plugin that integrates the Cregis cryptocurrency payment gateway with your WooCommerce store. This integration allows your customers to pay for products using popular cryptocurrencies including USDT, USDC, BTC, SOL, ETH, TRX and BNB.

Once installed and configured, the plugin automatically handles cryptocurrency payments, converts them to your preferred settlement currency, manages order statuses in real-time and provides a seamless checkout experience for your customers. The plugin also includes features for handling common cryptocurrency payment scenarios such as overpayments and underpayments.

No coding is required and you'll be ready to accept cryptocurrency payments.

= Features =

* Accept cryptocurrency payments (USDT, USDC, BTC, SOL, ETH, TRX and BNB)
* Support for multiple blockchain networks (TRON, Ethereum, BSC, Polygon, Avalanche-C, Arbitrum One, Solana, Base, Optimism and Bitcoin)
* Mispricing handling such as additional payment and partial refund for partial payment orders and overpayment orders
* Tolerance handling to accept underpayment and overpayment
* On-chain real-time order status notifications via webhook
* Built-in payment link

== External Services ==

This plugin connects to the Cregis API to process cryptocurrency payments. It is required for creating payment orders and checking payment status.

Integration Steps:

1. Download Cregis portal
2. Create account and complete settlement configuration
3. Install this plugin in your WordPress
4. Copy Cregis's credentials to WordPress settings
5. Done! Cregis Payment will be enabled automatically as one of your payment methods in your checkout page

For full product manual, please check here: https://support.cregis.com/payment-engine/introduction

Data sent per API call:

* order_id: Unique order identifier
* order_amount: Order total amount based on the payer's cart's total amount
* order_currency: Currency code (e.g., USD) based on your WooCommerce's currency settings
* payer_id: Unique User ID
* payer_email: Customer's billing email used for overpayment/underpayment notifications
* valid_time: Payment validity duration in minutes based on your Cregis settings
* underpaid_tolerance / overpaid_tolerance: Tolerance amounts based on your Cregis settings

This data is sent:

* When a new payment order is created during checkout by clicking Place Order
* When checking payment status on the return page
* When receiving payment webhook notifications

Service provider:

Cregis (https://cregis.com)

* Terms of Service: https://support.cregis.com/terms-and-conditions/cregis-standard-terms-of-service
* Privacy Policy: https://support.cregis.com/terms-and-conditions/privacy-policy-and-personal-information-collection-statement

== About Cregis ==

Founded in 2017 and headquartered in Hong Kong, Cregis is an enterprise digital asset infrastructure platform.

Over the past nine years, Cregis has served more than 4,000 businesses across 50+ countries and regions, including crypto exchanges, fintech companies, payment providers, digital banks, brokers, and Web3 businesses.

Cregis provides a three-layer infrastructure stack spanning Wallet Infrastructure, Fund Flow Orchestration, and Custody Capabilities, enabling enterprises to manage the full lifecycle of digital assets, from asset control and fund operations to governance and compliance.

Its core products, Wallet-as-a-Service (WaaS) and Payment Engine, are widely used across enterprise digital asset use cases. As demand for digital asset infrastructure continues to expand globally, Cregis remains focused on helping businesses operate digital assets with greater control, lower operational complexity, and stronger compliance readiness.

== Changelog ==

= 2.0.2 =
* Added: Server IP address display in settings with copy button for easy IP whitelist configuration

= 2.0.1 =
* Added: Multi-language support (Simplified Chinese and Traditional Chinese)
* Improved: Tolerance value formatting (now uses decimal format)
* Enhanced: Error messages (shows actual API errors)
* Changed: Renamed "Gateway Server" to "Base URL" for clarity
* Added: Support for 6 decimal place precision
