=== WP Stripe Cart - Fast, lightweight Stripe cart & checkout ===
Contributors: metrocode
Donate link: https://paypal.me/metrocode
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Tags: stripe, payments, ecommerce, checkout, credit card
Requires at least: 5.3
Tested up to: 7.0
Stable tag: 1.2.0
Requires PHP: 7.4

A fast, lightweight Stripe cart for WordPress. Manage products in Stripe, sell with a shortcode — no store to build, no monthly fees.

== Description ==

### The lightweight way to sell on WordPress with Stripe.

WP Stripe Cart turns your Stripe products into a clean, theme-friendly cart on your own site — without the weight, setup, and upkeep of a full e-commerce platform. You manage products in Stripe; you sell them on WordPress with a single shortcode.

It's the right-sized tool for when a full online store is overkill, but a plain "email us to buy" isn't good enough: digital downloads, physical goods, services, memberships, donations, event tickets, and more. The cart inherits your active theme's design, is mobile-first, and supports Apple Pay and Google Pay out of the box.

**How it works**

1. Add your Stripe API keys in the settings.
2. Create a product in Stripe.
3. Drop the shortcode on any page or post:

`[wsc-get-product product_id=your_stripe_product_id]`

That's it — WP Stripe Cart handles the cart, the checkout, tax, and your order records for you. No page builders, no complex configuration.

**Why WP Stripe Cart**

* Lightweight and fast — none of the bloat of a full store platform.
* No monthly fees — you only pay Stripe's standard processing fees.
* Theme-friendly — the cart adopts your site's colors and typography.
* Mobile-first checkout with Apple Pay / Google Pay.
* Your data stays on your site and in your own Stripe account.

**Grow with the Pro add-on**

When you're ready for more, WP Stripe Cart Pro adds coupons and discount codes, subscription (recurring) products, abandoned-cart recovery emails, and GA4 / Meta Pixel conversion tracking — all on the same lightweight foundation.

== Screenshots ==

1. Register your product to Stripe. Then copy product_id
2. Insert your product_id with the provided shortcode. The product section appears on your post or page and adapts to your theme's design.
3. When an item is added to the cart, a notification showing the product name appears.
4. Shopping cart. Compact, mobile-first responsive layout.

== Changelog ==

= 1.2.0 =
* New: Order status management on the Orders screen — mark each order Open / In progress / Done from an inline dropdown, change several at once with a bulk action, and filter the list by status. (WP Stripe Cart Pro can rename, recolour and add your own statuses.)

= 1.0.20 =
* New: Prevents mixing currencies in one cart — a Stripe payment can only charge a single currency, so adding a product in a different currency is blocked (and the checkout is refused server-side as a safety net).
* New: When the Pro add-on isn't installed, the menu shows its revenue features (Coupons, Subscriptions, Abandoned Carts, Conversion Tracking) with a "PRO" badge, each opening a short overview page.
* Improved: The Country list / Varied shipping fee help text now only shows while editing the raw value, and the "Default Fee" field is laid out more clearly. (Groundwork for the visual editors in WP Stripe Cart Pro.)

= 1.0.19 =
* Fix: Prices in currencies with decimals (e.g. USD $12.99) are now displayed correctly instead of 100x too large. Amounts are shown in the currency's major unit automatically — no configuration needed. Zero-decimal currencies (JPY, etc.) are unchanged.
* Fix: Desktop checkout — the address fields no longer overflow and get clipped on the right.

= 1.0.18 =
* Security: The charge amount is now recomputed on the server from your Stripe prices at checkout, so a tampered cart cannot underpay. Orders are verified against Stripe (PaymentIntent must be paid) before they are recorded, and duplicate records for the same payment are prevented.
* Improved: Shipping is more robust — an empty, malformed, or region-not-listed shipping table no longer produces PHP warnings or a broken cart response. Malformed JSON is now caught and flagged when you save the settings.
* New: A "Default Fee" shipping setting — charged when the buyer's country / prefecture is not listed in the varied-fee table (instead of silently shipping for free). Leave blank to keep the previous behavior.
* Improved: Tax is rounded to a whole currency unit (valid Stripe amount) instead of showing fractional minor units.
* New (developers): The `wsc_tax_amount` filter lets add-ons replace the tax calculation (used by WP Stripe Cart Pro's Stripe Tax mode).

= 1.0.17 =
* New: A "How to use" help page under the WP Stripe Cart menu — bilingual (Japanese / English) with tabs; add-ons can add their own tab.
* New: An "Upgrade to Pro" link on the Plugins screen (shown only when the Pro add-on is not active).

= 1.0.16 =
* Improved: The card number field is now a comfortable size on desktop as well as mobile, matching the other checkout fields.
* New (developers): Extension points so add-ons can build on the cart without changing the free plugin — the `wsc_cart_calculated` and `wsc_payment_intent_args` filters, the `wsc_order_saved` action, and `wsc:purchase` / `wsc:refresh-cart` JavaScript events.
* New: A compact info panel on the settings screen for the Pro and White Label add-ons.
* Improved: When a recurring (subscription) price is used with the `[wsc-get-product]` shortcode, a notice is now shown to administrators only (that shortcode charges a one-time payment).

= 1.0.15 =
* Improved: Mobile checkout — larger, easier-to-tap country / prefecture dropdowns and card number field, and extra bottom spacing so the Pay button is never hidden behind the mobile browser toolbar.
* Improved: More robust Apple Pay / Google Pay (Payment Request) availability check.

= 1.0.14 =
* New (White Label): Change the cart colors (button, text, accent, corner radius) right from the settings screen — no CSS editing required.
* Improved (White Label): "Powered by" is now removed automatically when the add-on is active, via the `wsc_show_powered_by` filter — no template editing required.
* Improved (White Label): Template overrides are now partial — copy only the templates you want to change into your theme's `wsc-template/` folder; anything you don't copy falls back to the plugin's up-to-date bundled template. Child and parent themes are both supported.
* Fix (White Label): The custom stylesheet placed in the theme was not being loaded (a URL was being checked with file_exists()). It now loads correctly.
* Improved: The styling is split into a small always-on "fixes" layer (layout/overflow only) and a token-based "skin" layer, so functional fixes never override a customized design.
* Dev: New filters `wsc_show_powered_by` and `wsc_enqueue_theme_css`.

= 1.0.13 =
* Design: Refreshed the front-end styling to blend with block themes (Twenty Twenty-Four and later). Buttons, colors and typography now inherit the active theme's design tokens via a non-destructive integration stylesheet.
* Fix: Product and cart images no longer overflow their containers.
* Improved: More compact cart drawer items (thumbnail on the left, name and quantity on the right) that stay tidy even with long product names. The checkout button now always stays visible.
* New: The "Added to cart" notice now shows the product name next to the thumbnail.
* New: Setting to adjust the floating cart icon position (offset from the bottom-right), useful when it overlaps a theme's "scroll to top" button. The cart icon is also raised in the stacking order.
* Improved: Larger, easier-to-tap "Add to cart" and "Checkout" buttons.
* New: Modern, simple "No Image" placeholder (SVG) that adapts to light and dark themes.
* Fix: Load the text domain on the `init` hook to avoid the "translation loading triggered too early" notice on WordPress 6.7+.
* Improved: Front-end assets are now versioned by the plugin version so updates bust the browser cache reliably.
* Tested up to WordPress 7.0.

= 1.0.7 =
Bugfix for auto address input for Japanease.

= 1.0.6 =
Bugfix for errors that occurs when not having product image on Stripe.

= 1.0.5 =
Added auto address input by Postal Code for Japanease address.

= 1.0.4 =
Updated japanease translation. Exclude lang dirrectory and do it online.

= 1.0.3 =
Updated translation releating settings.

= 1.0.0 =
Initial Release.
