=== EasyPayment Payment Gateway for Stripe for WooCommerce ===
Contributors: easypayment
Tags: stripe, woocommerce, credit card, visa
Requires at least: 6.0
Tested up to: 6.8.3
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept credit/debit card payments via Stripe using Stripe, with authorize/capture, saved cards, refunds, and automatic webhook management.

== Description ==

**EasyPayment Payment Gateway for Stripe for WooCommerce** adds a secure, modern credit/debit card field to your checkout. It supports Strong Customer Authentication (SCA), lets you authorize now and capture later, allows customers to save cards for next time, and automatically sets up the Stripe webhook for order updates.

### Highlights

- Clean, secure card checkout
- Authorize now & capture later, or capture immediately
- Saved cards (tokenization) for returning customers
- Refunds from the WooCommerce order screen
- Automatic webhook creation & signing secret storage
- SCA-ready (3D Secure when required)
- Optional debug logging for troubleshooting

### Supported Card Types

- Visa  
- MasterCard  
- American Express  
- Discover  
- JCB  
- Diners Club

== Installation ==

1. Upload and activate the plugin.
2. Go to **WooCommerce → Settings → Payments → Stripe (EPSPGW)**.
3. Enter your **Test** and **Live** Stripe keys (Publishable & Secret).
4. Choose **Environment** (Sandbox or Production) and **Charge Type** (Authorize Only or Capture Immediately).
5. Save changes. The webhook is set up automatically.

== Frequently Asked Questions ==

= Will customers leave my site to pay? =  
No. Payments happen inline on your checkout page using Stripe’s secure card fields.

= Can I authorize payment and capture later? =  
Yes. Set **Charge Type** to **Authorize Only**. You can capture later from your Stripe Dashboard.

= Can customers save their card details? =  
Yes. Logged-in customers can securely save a card for faster checkout next time.

= My webhook isn’t appearing in the Stripe Dashboard. What should I check? =  
Make sure you’ve:
- Entered the correct **Secret Key** for the selected environment.
- Saved the gateway settings after entering your keys.
- Enabled HTTPS on your site.  
If it still doesn’t show, enable **Debug Log** and check **WooCommerce → Status → Logs** (source `epspgw`) for details.

= Where can I view logs? =  
Go to **WooCommerce → Status → Logs** and pick a file with the source **`epspgw`** (and **`epspgw-actions`** for AJAX flows) if debug logging is enabled.

== Screenshots ==

1. Card fields at checkout
2. Gateway settings screen  
3. Saved cards in the customer account area  
4. Refunds from the order admin screen

== External Services ==

This plugin integrates with Stripe and uses the following external URLs:

- https://js.stripe.com/v3/  
  Loads Stripe.js on checkout / payment screens when the gateway is active.

- https://dashboard.stripe.com/  
  Link to the Stripe Dashboard.

- https://dashboard.stripe.com/apikeys  
  Link to the Live API keys page.

- https://dashboard.stripe.com/test/apikeys  
  Link to the Test API keys page.

- https://dashboard.stripe.com/payments/%s  
  Deep link to a specific payment in Live mode. The "%s" placeholder is replaced at runtime with the Payment/PaymentIntent ID.

- https://dashboard.stripe.com/test/payments/%s  
  Deep link to a specific payment in Test mode. The "%s" placeholder is replaced at runtime with the Payment/PaymentIntent ID.

Notes:
- External resources are only requested when relevant screens are loaded (e.g., checkout, order admin, or plugin settings).
- The plugin itself does not send analytics; requests go directly to Stripe's domains as part of payment processing or dashboard linking.

**Stripe Terms of Service:** https://stripe.com/legal  
**Stripe Privacy Policy:** https://stripe.com/privacy

== Changelog ==

= 1.0.3 =
* Added - Settings link and automatic redirect to the gateway settings after plugin activation.

= 1.0.0 =  
* Initial stable release: Stripe Elements card payments, authorize/capture, saved cards, refunds, automatic webhook management, and logging.

== Privacy ==

When you take a payment, order details and payment tokens are sent to Stripe for processing. Saved cards store Stripe customer and payment method references in WooCommerce—never full card numbers. See Stripe’s privacy policy for how Stripe handles data.
