=== ZAD Stripe Credit Card Payments ===
Contributors: zeeshanaslam
Donate link: https://aiviralab.com
Tags: stripe, credit card, stripe elements, payments, payment form
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept credit card payments directly on your WordPress site using Stripe Elements, on-page 3D Secure verification, and customizable Thank You screens.

== Description ==

Accepting credit card payments for products, consulting, freelance services, or donations should be frictionless and secure without forcing users to leave your website.

**ZAD Stripe Credit Card Payments** is a lightweight, single-file payment gateway solution engineered with the latest Stripe Elements and Strong Customer Authentication (SCA / 3D Secure 2.0).

### Key Features:

1. **On-Site Embedded Stripe Journey:**
   * Customers enter their credit card information securely using Stripe Elements directly on your website.
   * Full 3D Secure / SCA verification dialogs occur in-place without jarring offsite redirects.

2. **Built-in Interactive Thank You Screen & Custom Redirection:**
   * Includes a built-in on-page receipt confirmation that immediately displays a verified transaction ID upon payment completion.
   * Alternatively, define a custom Thank You page URL in settings to send users to tailored onboarding or download pages.

3. **Zero Database Bloat & Super Lightweight:**
   * Does not require WooCommerce, bulky checkout wizards, or complex database tables.
   * Uses WordPress Transients and AJAX securely for server-side PaymentIntent creation.

4. **Test & Live Mode Toggles:**
   * Effortlessly test card payments using Stripe test card numbers before taking real transactions live.

5. **Flexible Shortcode Parameters:**
   * Embed anywhere using `[zad_stripe_payment]`.
   * Configure custom pricing, predefined items, or allow clients to input custom invoice amounts.

Usage:
Insert the shortcode anywhere inside posts, pages, or sidebar blocks:
`[zad_stripe_payment]`

Predefined service fee:
`[zad_stripe_payment amount="75.00" item_name="Website Audit & Strategy Session"]`

Allow clients to enter custom invoice amounts:
`[zad_stripe_payment allow_custom="true" item_name="Invoice Payment" button_text="Pay with Card"]`

Specify different currency:
`[zad_stripe_payment amount="50.00" currency="GBP" item_name="Consulting Hourly Rate"]`

== Installation ==

1. Upload the `zad-stripe-credit-card-payments` directory to the `/wp-content/plugins/` directory (or upload the `.zip` file via **Plugins > Add New > Upload Plugin**).
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Settings > Stripe Payments** and enter your Stripe Publishable Key and Secret Key.
4. Place `[zad_stripe_payment]` on any page, post, or template.

== Frequently Asked Questions ==

= Is this plugin PCI-compliant? =
Yes! Card data is entered through Stripe Elements mounted iframes directly to Stripe servers. Sensitive credit card numbers never touch or store on your WordPress server.

= Does this support 3D Secure 2 / SCA? =
Yes. It uses the modern Stripe PaymentIntent API which automatically invokes 3D Secure verification authentication when required by European or international banks.

= Can I use this for custom client invoices? =
Yes. Set `allow_custom="true"` in the shortcode to let clients type their own payment amount.

== Screenshots ==

1. Embedded credit card payment form with mounted Stripe Elements fields.
2. Immediate on-page Thank You confirmation receipt.
3. Clean admin settings page for API keys, currency, and redirect URLs.

== Changelog ==

= 1.0.0 =
* Initial official release on WordPress.org.
