=== PCIO VIS Products ===
Contributors:      pcio
Author:            PCIO
Author URI:        https://www.pcio.dk
Plugin URI:        https://www.pcio.dk/vis-plugins
Tags:              shop, products, subscriptions, stripe, license keys
Requires at least: 6.2
Tested up to:      7.0
Requires PHP:      8.1
Requires Plugins:  pcio-vis-member-event, pcio-vis-tickets
Stable tag:        1.0.0
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Adds a digital shop to PCIO VIS Member Event: products, license-key subscriptions, a storefront with Stripe checkout and member subscriptions.

== Description ==

PCIO VIS Products is an extension for the PCIO VIS Member Event plugin. It adds a digital shop with products and license-key subscriptions, a public `[pcio_me_shop]` storefront with Stripe checkout, a Shop Orders list in Finance, automatic membership subscriptions on the member list, and a renewal/expiry reminder cron.

Features:

* Digital products and license-key subscriptions.
* Public storefront via the `[pcio_me_shop]` shortcode with Stripe checkout.
* Shop Orders list integrated into the core Finance area.
* Automatic membership subscriptions on the member list.
* Renewal and expiry reminder cron.

This plugin requires the PCIO VIS Member Event core plugin to be installed and active. It reuses the PCIO VIS Tickets plugin's Stripe configuration.

== Installation ==

1. Install and activate the **PCIO VIS Member Event** core plugin first.
2. Upload the `pcio-vis-products` directory to `/wp-content/plugins/`.
3. Activate the plugin in **Plugins** in the WordPress admin.
4. Add products and configure the shop under the **Vis** admin menu.

== Frequently Asked Questions ==

= Where does the storefront appear? =
Add the `[pcio_me_shop]` shortcode to any page, or browse the shop under `/vis/shop`.

= Do I need to configure Stripe here? =
Stripe configuration is shared with the PCIO VIS Tickets plugin. No separate Stripe setup is needed in this plugin.

== External services ==

This plugin connects to the Stripe payment API (operated by Stripe, Inc.) to process card payments for paid products and subscription renewals. Free products (price 0) never contact Stripe. Stripe is only used when Stripe API keys have been entered in the PCIO VIS Tickets settings.

What is sent, and when:

* **When a buyer checks out a paid product or renewal:** the plugin creates a Stripe Checkout Session by sending the order number, line items (product names and amounts), the currency, the buyer's email address, and success/cancel return URLs to `https://api.stripe.com`. The buyer is then redirected to Stripe's hosted checkout page, where card details are entered directly with Stripe (card data never passes through this site).
* **When an administrator refunds a paid order:** the payment reference is sent to `https://api.stripe.com` to create the refund.
* **On the order confirmation page:** the plugin queries `https://api.stripe.com` to confirm payment status (this site does not use a separate webhook for the shop).

Buyer name and email entered at checkout are stored on this site to issue and email licence keys. Because personal data and payment data are transmitted to Stripe, please ensure your own privacy policy covers this. By using this integration you and your buyers are subject to Stripe's terms and policies:

* Stripe Services Agreement (terms): https://stripe.com/legal/ssa
* Stripe Privacy Policy: https://stripe.com/privacy


== Screenshots ==

1. The product page where products can be maintained. Single purchase or subscription products.
== Changelog ==

= 1.0.0 =
* Initial release.
