=== Cards - Flik Payments ===
Contributors: flik
Tags: woocommerce, payment gateway, pinch payments, credit card, subscriptions
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Take credit card payments in WooCommerce via Flik, with block checkout and subscription support (WooCommerce Subscriptions and WPswings Subscriptions for WooCommerce).

== Description ==

This plugin adds Pinch Payments (getpinch.com.au) as a WooCommerce payment gateway.

* Credit card payments via Pinch's realtime payments API (AUD).
* PCI-friendly: card details are tokenized in the browser with Pinch CaptureJS and never touch your server.
* No card-on-file: customer-initiated card saving is disabled (re-enable only via the `flik_pinch_saved_cards_enabled` filter). A subscription must be started with a card entered at that checkout; the card is vaulted with Pinch under a payer dedicated to that subscription, is never offered for other purchases, and is deleted from the vault when the subscription is cancelled, expires, moves to another gateway, or the customer enters a replacement card.
* Works with both the classic (shortcode) checkout and the WooCommerce Blocks checkout.
* WooCommerce Subscriptions: renewal payments are charged automatically against the saved payment source, including payment-method changes and failed-payment recovery.
* WPswings Subscriptions for WooCommerce (free and Pro): the gateway is offered for subscription products, cards are vaulted at checkout, scheduled renewals are charged automatically, customers can change the card from My Account, and cancellations are reflected locally.
* Full and partial refunds from the WooCommerce order screen (Pinch processes refunds asynchronously).
* Test mode against the Pinch test environment, with debug logging to WooCommerce > Status > Logs.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/` and activate it (WooCommerce must be active).
2. Go to WooCommerce > Settings > Payments > Cards - Flik Payments.
3. Enter your Application ID and Secret Key from the Flik portal under API Keys > Card Payments, plus your test and live publishable keys.
4. Enable test mode and place a test order using a Pinch test card number.
5. When ready, disable test mode.

== Frequently Asked Questions ==

= Which currencies are supported? =

AUD by default. The list can be adjusted with the `flik_pinch_supported_currencies` filter.

= Is card data stored on my site? =

No. Cards are tokenized in the browser by Pinch CaptureJS; the site only ever stores Pinch payer/source references (pyr_… / src_…).

== Changelog ==

= 1.1.0 =
* Added compatibility with WPswings Subscriptions for WooCommerce: gateway availability for subscription carts, automatic renewal charges, payment-method changes, manual payment of failed renewals, and cancellation handling.
* Subscription cards are now scoped to the subscription: a new card must be entered to start or re-card a subscription (stored cards are refused), it is vaulted under a dedicated Pinch payer rather than the customer's account, and the source and payer are deleted when the subscription ends or the card is replaced.

= 1.0.0 =
* Initial release: realtime credit card payments, blocks checkout, subscriptions, refunds, automatic updates.
