=== Atlas Pay ===
Contributors: kylecampbell
Tags: payments, woocommerce, checkout, atlas-pay
Requires at least: 6.5
Requires PHP: 8.0
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Stripe-hosted Atlas Pay checkout for WooCommerce and payment buttons for WordPress.

== Description ==
Install on a WordPress site to add a payment-link shortcode. Install WooCommerce to also add Atlas Pay as a payment gateway in classic checkout and Checkout Blocks.

The merchant API currently runs in test mode. Test payments never move money. The plugin is a development release; validate on a staging store before use.

== Installation ==
1. Upload the atlas-pay ZIP under Plugins > Add New > Upload Plugin and activate.
2. For payment buttons, add [atlas_pay url="YOUR_STRIPE_HOSTED_LINK" label="Pay now"] to a Shortcode block.
3. For orders, install WooCommerce and open WooCommerce > Settings > Payments > Atlas Pay.
4. Copy the website and callback URLs shown there. Your website must use HTTPS.
5. In Atlas Pay > Developers > API keys, create a key with all six permissions: account:read, checkouts:read, checkouts:write, refunds:read, refunds:write, and events:read. Register the website and callback URLs.
6. Save the key and webhook signing secret in the plugin. Alternatively, define ATLAS_PAY_SECRET_KEY and ATLAS_PAY_WEBHOOK_SECRET in wp-config.php using values from your secret manager.
7. Enable the gateway. Finish Stripe Connect onboarding in Atlas Pay before checkout testing.

== External services ==
This plugin sends order totals, currency, order references, customer email and return URLs to https://www.atlaspay.sh/api/v1. Atlas Pay creates Stripe-hosted checkout sessions for the connected merchant. Card details are collected by Stripe, never by this plugin.
Atlas Pay sends signed payment/refund notifications to your site. Pending orders are also checked using WooCommerce Action Scheduler. Real server cron is recommended for low-traffic stores.
Atlas Pay terms: https://www.atlaspay.sh/terms
Atlas Pay privacy: https://www.atlaspay.sh/privacy
Stripe privacy: https://stripe.com/privacy

== Limitations ==
One-time order payments only. No automatic recurring subscriptions, manual capture, saved cards, express checkout or multicurrency conversion.
Pending refunds must be reconciled after processor confirmation. Refunds made outside WooCommerce do not automatically create WooCommerce refund records.
Do not change a pending order total or currency. Expire/reconcile its previous checkout first.
Country, currency, payment method and payout eligibility depend on the connected Stripe account. This plugin does not enable merchant onboarding in unsupported countries.

== Changelog ==
= 0.1.0 =
Initial development release with hosted checkout, verified payment confirmation, signed notifications, idempotent requests, refunds, Checkout Blocks, HPOS support and a payment-link shortcode.
