=== Avenia Digital Products ===
Contributors: avenialabs
Tags: digital downloads, ecommerce, sell digital products, stripe, paypal
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell digital downloads on WordPress with Stripe, PayPal, a cart, checkout, and secure file delivery.

== Description ==

= Sell digital products on WordPress =

[Avenia Digital Products](https://aveniadigitalproducts.com/) is a WordPress ecommerce plugin built for digital downloads: ebooks, templates, design assets, photography, software zips, and more. Unlimited products, unlimited orders, no marketplace listing fees.

This is the **Lite** edition of the plugin: a complete digital download store with Stripe and PayPal, cart and checkout, customer accounts, protected downloads, discount codes, and transactional emails.

[View the live demo](https://demo.aveniadigitalproducts.com/)
[Read the documentation](https://aveniadigitalproducts.com/docs)

= What's in the store =

Create products, set prices, connect Stripe or PayPal, and publish. Includes:

* Shopping cart and checkout
* Customer accounts and purchase history
* Secure download delivery after payment
* Discount codes and tax settings
* Orders and customers in the admin
* Dashboard sales summary
* Simulate / sandbox / live payment modes for testing before you go live

= Payments with Stripe and PayPal =

Accept payments with Stripe and PayPal. Use **simulate** while building your store, **sandbox** for test checkouts, then switch to **live** when you are ready. Credentials for test and live can be saved and switched from settings.

= Flexible pricing for digital products =

Sell downloads with a pricing matrix, useful for quantity or multi-site price tiers on the same product. Offer free downloads when you want lead magnets without checkout. Paid products use cart and checkout; free downloads can optionally collect an email.

= Checkout and storefront =

Cart and checkout pages, product pages with gallery and demo links, related products, and appearance controls so the store can match your theme. Products and cart icon blocks (and shortcodes) help you place catalog and cart UI where you need them.

= Protect your digital downloads =

After purchase, customers receive protected download access through the plugin, not a public media URL. Manage orders and customers from the admin; revoke access when needed.

= Customer accounts and emails =

Customers can access purchases from My Account. Order confirmation, account confirmation, and download-link emails are included (customizable in settings).

= Built for creators =

Use it to sell:

* Ebooks, PDFs, and digital guides
* Templates and design assets
* Photography and digital art
* Audio or video files
* Software zips and other digital files

= Full (sold separately) =

Full includes everything here, plus:

* License keys for the products you sell, plus the license REST API
* WordPress plugin and theme updates for products you sell
* Subscription products (including trials and setup fees)
* Customer subscription cancel and restart
* Manual order creation / assigning products to customers
* Reports with CSV export
* Related emails (license key, subscription renewal, payment failed)
* Priority support

== Installation ==

1. Upload the plugin to `/wp-content/plugins/avenia-digital-products/` or install via Plugins → Add New
2. Activate the plugin through the Plugins menu in WordPress
3. Configure pages and payment settings under **Avenia Digital Products → Settings**
4. Create your first product and set a price (or enable free download)

== Frequently Asked Questions ==

= Where can I see a demo? =

[demo.aveniadigitalproducts.com](https://demo.aveniadigitalproducts.com/)

= Is this free forever? =

Yes. This version stays fully usable for digital downloads with no trial timer. Full is optional if you need subscriptions, product license keys, reports, and other Full features.

= Do I need Full to sell digital downloads? =

No. Products, cart, checkout, Stripe/PayPal, discounts, tax, customer accounts, and protected downloads all work in this version.

= How do customers get their files after purchase? =

After payment, customers get protected download access through the plugin (not a public media URL). They can also find purchases on the My Account page. Order confirmation and download-link emails are included.

= Can I offer free downloads? =

Yes. Enable free download on a product for lead magnets. Checkout is skipped; you can optionally collect an email before delivery.

= What is the difference between simulate, sandbox, and live payments? =

**Simulate** lets you test the store without connecting a payment provider. **Sandbox** uses Stripe or PayPal test credentials for real checkout flows with test cards. **Live** accepts real payments. You can save test and live credentials and switch modes in settings.

= Does this work with page caching? =

Yes for the catalog. Keep checkout and account pages uncached so carts and logins work correctly. System Status helps verify your setup.

= Can I sell subscriptions or software license keys? =

No. Subscription products and license keys you sell to customers (plus the license REST API) are in Full only and are not included in this version of the plugin.

= How do I upgrade to Full? =

Buy Full from [aveniadigitalproducts.com](https://aveniadigitalproducts.com/). Deactivate and delete this plugin, install Full, then activate your license key. Do not run both at the same time. Your products and orders stay in the database.

= Where is the block editor source code? =

Human-readable block sources live in `blocks/products/index.js` and `blocks/cart-icon/index.js` (with matching `package.json` files). Built assets used by WordPress are in each block’s `build/` folder. To regenerate the built files: install Node.js, then in each block directory run `npm install` and `npm run build` (`@wordpress/scripts`).

== Screenshots ==

1. Product editor with pricing matrix and download file settings
2. Storefront product page with gallery, pricing tiers, and add to cart
3. Cart and checkout with Stripe or PayPal
4. Customer My Account with purchase history and protected downloads
5. Settings — payment modes (simulate, sandbox, live) and Stripe/PayPal credentials

== External services ==

This plugin can connect to Stripe and PayPal so your store can accept payment for digital products. No payment provider is contacted while **Simulate payments** is enabled; sandbox and live modes use the provider APIs below.

= Stripe =

Stripe is used for hosted Checkout when a customer pays with Stripe (sandbox or live).

When a paid order is placed, the plugin sends order details to Stripe to create a Checkout Session: line items (product name, amount, currency), your local order ID, success and cancel URLs on your site, and optionally the customer’s email. When the customer returns from Stripe (or via webhook), the plugin retrieves or receives session/payment status to confirm the order. Optional webhooks may send payment event data to your site so orders can complete if the browser return is missed.

This service is provided by Stripe: [Terms of Service](https://stripe.com/legal/ssa) and [Privacy Policy](https://stripe.com/privacy).

= PayPal =

PayPal is used for hosted PayPal checkout when a customer pays with PayPal (sandbox or live).

When a paid order is placed, the plugin requests an OAuth access token with your PayPal Client ID and Secret, then creates a PayPal order with the order total (amount and currency), your local order ID, and return/cancel URLs on your site. When the customer returns from PayPal, the plugin captures or verifies the payment and completes the order. This version does not register or receive PayPal webhooks.

This service is provided by PayPal: [User Agreement](https://www.paypal.com/us/legalhub/paypal/useragreement-full) and [Privacy Statement](https://www.paypal.com/us/legalhub/privacy-full).

== Changelog ==

= 1.0.0 =
* Initial release.
