=== AstroPay for WooCommerce ===
Contributors: astropay
Tags: astropay, payment, gateway, woocommerce, checkout
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 3.0.3
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept payments via AstroPay – Cards, Wallet, and Local Payment Methods.

== Description ==

AstroPay for WooCommerce allows your store to accept payments through AstroPay's Checkout – including credit/debit cards, AstroPay Wallet, and local payment methods across Latin America and other markets.

= Features =

* Accept card payments, AstroPay Wallet, and local payment methods
* Sandbox and Production environments
* Automatic order status updates via webhooks
* Refund support directly from the WooCommerce admin

= External Services =

This plugin connects to AstroPay's API to process payments. By using this plugin, you agree to AstroPay's terms of service.

* **Production API**: https://partners-api.astropay.com
* **Sandbox API**: https://partners-api-sandbox.astropay.com

These services are called when:
- A customer places an order (to create a payment session)
- A refund is issued from the WooCommerce admin
- A webhook is received (to fetch signing certificates)

Please review AstroPay's Privacy Policy: https://www.astropay.com/legal/privacy-policy/
And Terms of Service: https://www.astropay.com/legal/terms-and-conditions/

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/astropay-for-woocommerce/`
2. Activate the plugin through the **Plugins** menu in WordPress
3. Go to **WooCommerce → Settings → Payments → AstroPay**
4. Enter your API credentials and select the environment (Sandbox or Production)
5. Save changes

To obtain API credentials, sign up at https://www.astropay.com

== Frequently Asked Questions ==

= Where do I get my API credentials? =

Sign up as a merchant at https://www.astropay.com and obtain your Client ID and Secret from the partner portal.

= Does this plugin support refunds? =

Yes. Refunds can be issued directly from the WooCommerce order admin page.

= What countries are supported? =

AstroPay supports payments across Latin America and other markets. Check https://www.astropay.com for the full list of supported countries.

= Is there a sandbox mode for testing? =

Yes. Select "Sandbox" in the plugin settings and use your sandbox credentials to test without processing real payments.

== Screenshots ==

1. Payment gateway settings page
2. AstroPay checkout experience

== Changelog ==

= 3.0.1 =
* Declare HPOS (High-Performance Order Storage) compatibility

= 3.0.0 =
* Complete rewrite with direct integration against AstroPay Checkout API
* OAuth2 authentication
* Webhook signature verification (RSA)
* Refund support
* Removed dependency on third-party provider

== Upgrade Notice ==

= 2.0.0 =
This is a full rewrite. Previous settings will not be migrated automatically. Please re-enter your API credentials after upgrading.
