=== Temble Payments ===
Contributors: temble
Tags: payments, woocommerce, apple pay, google pay, checkout
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.6.0
License: GPLv2 or later

Accept cards, Apple Pay and Google Pay through Temble's hosted checkout.

== Description ==

Adds a "Temble Payments" gateway to WooCommerce. At checkout the customer is
redirected to Temble's secure hosted payment page (cards, Apple Pay, Google
Pay), pays there, and is returned to the store's order-received page.
Cancelled payments return the customer to checkout with their cart intact.

Payment sessions are created server-to-server and every callback is verified
with an HMAC signature — the store never trusts a browser redirect alone, and
orders can only be marked paid by a genuine confirmation from Temble.

Works with both the classic WooCommerce checkout and the block-based checkout.

== Installation ==

1. In WordPress admin, go to Plugins → Add New → Upload Plugin and upload
   temble-payments.zip, then activate it. WooCommerce must be active.
2. Go to WooCommerce → Settings → Payments → Temble Payments → Manage.
3. Click "Connect to Temble", approve the connection on temble.io, and you
   are brought straight back — no keys to copy. The gateway switches on
   automatically once connected.
4. Place a test order to try the full loop.

The plugin never contains Stripe API keys. All payment processing happens on
Temble's hosted checkout; the plugin only links the store to your Temble
organization and verifies signed payment confirmations.

Logs: WooCommerce → Status → Logs (source: temble-payments).

== Changelog ==

= 1.6.0 =
* Automatic updates: WordPress now checks Temble for new releases of this
  plugin and installs them on its own (twice a day, with WordPress's own
  updater), so the store never needs a manual download again. "Keep this
  plugin up to date automatically" in the settings switches the installing
  off; updates are then still offered on the Plugins page. Only a package
  served by the Temble host the store is connected to is accepted.

= 1.5.0 =
* Sale attribution: a small script on the store's pages records the campaign
  (utm_* parameters, ad click ids), the referring site and the landing page
  that brought each shopper - kept 30 days in the shopper's browser - and the
  checkout sends it with the payment, so every order shows its source in
  Temble. The ad platforms' own browser ids (_fbp, _fbc, _ttp, _ga) travel
  with it for server-side conversion tracking. No name, e-mail or address is
  involved.

= 1.4.1 =
* The payment method now hides itself at checkout while the store holds no
  Temble credentials, instead of letting a customer place an order that fails
  with "this store is not connected to Temble yet". The settings screen says
  so when the method is switched on before the connection is finished.

= 1.4.0 =
* Sends the customer's billing country (two letters, nothing else about the
  customer) with each payment session, so Temble's regional routing rules
  can send the payment to the merchant's setup for that region.

= 1.3.0 =
* Faster checkout: the payment session is prepared in the background while
  the shopper fills the form; Place Order only claims it.

= 1.2.0 =
* One-click "Connect to Temble": credentials are exchanged server-to-server
  during approval on temble.io — nothing to copy or paste.
* Gateway hides from checkout until the store is connected.

= 1.1.0 =
* Customers now stay on the Temble thank-you page after paying; the store is
  notified server-to-server (signed) to mark the order as paid.
* Platform fees are managed centrally from Temble — nothing to configure in
  the store.

= 1.0.0 =
* Real payments through Temble (Stripe Connect): cards, Apple Pay, Google Pay.
* Server-to-server pay sessions with HMAC-signed callbacks — orders cannot be
  spoofed as paid from the browser.
* WooCommerce block checkout support.

= 0.1.0 =
* Initial sandbox release: redirect to hosted /pay page, return handling,
  cancel handling, HPOS compatible.
