	=== Pigee Shipping & Payments ===
	Contributors: pigeepost  
	Tags: woocommerce, shipping, shipping insurance, payment gateway, checkout blocks, pigee  
	Requires at least: 6.0  
	Tested up to: 6.8  
	Requires PHP: 7.4  
	Stable tag: 1.0.2  
	License: GPLv2 or later  
	License URI: https://www.gnu.org/licenses/gpl-2.0.html  

	Pigee integration for WooCommerce – provide real-time shipping rates, insurance, and payments at checkout.

	== Description ==

	This plugin integrates the Pigee API with WooCommerce to provide a complete shipping, insurance, and payment experience at checkout.

	Key features include:
	- Dynamic real-time shipping rates from supported carriers.
	- Optional shipping insurance selection during checkout.
	- A custom Pigee payment gateway.
	- Full compatibility with WooCommerce Checkout Blocks and classic checkout.
	- Secure order creation, fulfillment, and tracking via the Pigee platform.


	== Installation ==

	1. Upload the plugin zip to your WordPress site via Plugins > Add New > Upload Plugin.
	2. Activate the plugin.
	3. Go to WooCommerce > Settings to configure shipping and payment settings.
	   - You will need a Pigee API key. To get your API key, create a free account at https://account.pigeepost.com  
	   - Select Store Connect in your Pigee account and follow the instructions.  
	4. Ensure WooCommerce Blocks plugin is active (if using block-based checkout).

	== Frequently Asked Questions ==

	= Is this plugin compatible with WooCommerce Checkout Blocks? =
	Yes. This plugin supports both traditional and block-based checkout flows.

	= Do I need an API key from Pigee? =
	Yes. Create a free account at https://account.pigeepost.com, then go to Store Connect in your account and follow the instructions to generate your key.

	== Screenshots ==

	1. Pigee Shipping option in checkout
	2. Pigee Shipping Insurance selection
	3. Pigee Payment method in checkout

	== External Services ==

	This plugin relies on external services provided by Pigee Inc. (pigeepost.com) in order to calculate shipping rates, validate API credentials, create and update orders, and process order fulfillment.

	=== Services Used ===
	The plugin communicates with the following external API endpoints:

	- https://api.pigeepost.com/api/v1/store/plugin/status – Update to plugin status
	- https://api.pigeepost.com/api/v1/store/valid – validate API key
	- https://api.pigeepost.com/api/v1/store/order/getcarriercost – calculate carrier shipping rates
	- https://api.pigeepost.com/api/v1/store/order/create – used when a customer selects Pigee Shipping or Pigee Pay at checkout
	- https://api.pigeepost.com/api/v1/store/order/statusupdate – update order status
	- https://api.pigeepost.com/api/v1/store/order/fulfill – order fulfillment and tracking
	- https://api.pigeepost.com/api/v1/store/product/sync – sync product details (weights, dimensions, SKU, price, etc.)
	- https://api.pigeepost.com/api/v1/store/product/delete – remove product data when a product is deleted or unpublished
	- https://api.pigeepost.com/api/v1/store/getinsurance – retrieve available shipping insurance options and calculate insurance pricing

	For testing, the same endpoints may also be called on the staging domain:
	- https://stagingapi.pigeepost.com

	=== What data is sent and when ===
	- Store identifier and API key – sent when validating credentials
	- Order and cart details (products, quantities, weights, prices, destination address) – sent when calculating shipping rates and retrieving insurance options
	- Insurance selection details (insurance code, price, and request identifier) – sent when a customer selects shipping insurance at checkout
	- Order details and insurance confirmation – sent when creating orders or fulfilling shipments
	- Shipment status updates – sent when confirming fulfillment or updating delivery information

	Customers can optionally add shipping insurance during checkout, with real-time insurance options retrieved securely from the Pigee API.

	This data is transmitted securely to Pigee’s servers only when your store processes shipping rate requests, creates orders, or updates fulfillment. No data is shared outside of these actions.

	=== Terms of Service and Privacy Policy ===
	By using this plugin, you agree to Pigee’s terms:
	Production:
	- https://pigeepost.com/terms-conditions
	- https://pigeepost.com/privacy-policy

	Staging/Testing:
	The staging environment (https://stagingapi.pigeepost.com) is used only for testing.  
	It follows the same Terms of Service and Privacy Policy as the production site:  
	- https://pigeepost.com/terms-conditions  
	- https://pigeepost.com/privacy-policy

	== Changelog ==

	= 1.0.0 =
	* Initial release with block and classic checkout support.
	
	= 1.0.1 =
	* Added support for product sync endpoint for better shipping rate accuracy.
	* Resolved TypeError related to missing validation rules when syncing products.
	* Enhanced logging for API requests and responses in both staging and production environments.
	* Improved WooCommerce Blocks compatibility for shipping and payment methods.
	* Minor UI fixes in checkout and settings screens.
	
	= 1.0.2 =
	* Added optional shipping insurance selection at checkout.
	* Integrated insurance pricing with real-time shipping calculations.
	* Stored insurance details in WooCommerce order data for reference and fulfillment.
	* Improved checkout block behavior when insurance options change.
	* Minor stability and performance improvements.

	== Upgrade Notice ==

	= 1.0.0 =
	First release.

	= 1.0.1 =
	This update improves API stability, fixes validation issues with product sync, and enhances checkout compatibility. Updating is recommended.

	= 1.0.2 =
	This update introduces optional shipping insurance at checkout and improves checkout block behavior. Merchants offering insured shipping are encouraged to update.
	
	
	== License ==

	GPLv2 or later
