Payments.lk for WooCommerce: every version, newest first.

= 0.2.1 =
* Ready for the WordPress.org plugin directory. The plugin declares that it needs WooCommerce, so WordPress asks for WooCommerce first.
* The readme names the external service, what is sent and when, with the Payments.lk terms of use and privacy policy, and gains screenshots.
* Tested up to WordPress 7.1 and WooCommerce 11.1.
* The webhook's signature header is unslashed and sanitised before it is read. What it verifies is unchanged.
* The Plugin URI is the plugin's own page. The Domain Path header, naming a folder never shipped, is gone; translations come from translate.wordpress.org.
* The settings screen, its warnings and the installation steps say to tick all five events the plugin uses on each webhook endpoint. A new endpoint in the dashboard ticks only payment.succeeded and payment.failed, and without refund.succeeded a refund is never noted.
* A refund the API reports as already through is noted that way, not as waiting for the processor. Nothing else about payments, refunds or webhooks changed.

= 0.2.0 =
* Payments in the store currency. Each checkout is sent in the order's currency: LKR as before, or USD, GBP or EUR, which Payments.lk takes once Payable has set that currency up for your account. The gateway is offered on a store in any of the four, and stays hidden on any other.
* When your account does not take the store currency yet, the settings screen says so for the mode you are in, and a customer who tries to pay is told the store cannot take card payments in that currency right now, with Payments.lk's own explanation in the order note.
* The limits follow the currency: Rs. 10 to Rs. 1,000,000, or 2.00 to 10,000.00 in USD, GBP and EUR.
* An order is marked paid only by a payment of its amount in its own currency; anything else is held for you to check. Order notes show amounts in the payment's currency.

= 0.1.2 =
* A customer's phone number is sent only when it is a Sri Lankan number the API accepts (0771234567, +94771234567, or 94771234567 read as +94771234567). Any other number is left out. Before, a foreign or partly typed number made the API refuse the whole checkout, so the customer could not pay.
* A name shorter than two characters is left out for the same reason.
* The payment method says what the hosted checkout takes: cards. The default title is now "Pay by card"; a store still showing the old default, "Card, LankaQR or LankaPay", shows the new one without a settings change, and a title you wrote yourself is kept.
* A webhook signing secret for each mode. The dashboard gives sandbox and live their own endpoints, each with its own secret, and sends sandbox events only to sandbox endpoints. With one field, a store that went live and kept its sandbox secret refused every live notification, so paid orders stayed pending. On updating, the secret you had moves into the field for the mode the store is in, once. It stays where it was too, so going back to 0.1.1 still works.
* A notification has to be signed with one mode's secret and say it is from that mode, and the order it matches has to have been made in that mode. Otherwise it is refused or ignored.
* The gateway is offered at checkout only when the current mode has both its secret key and its webhook signing secret, and the settings screen says what is missing.
* An order is matched only through a checkout or a payment this store created for it. Before, a notification whose reference was a number was taken as the order with that number, so another store on the same Payments.lk account, or a payment link with such a reference, could reach the wrong order. Every checkout an order has had is kept, so a customer who pays on an earlier one that is still open is recognised. A refund notification has to name the order's own payment.
* A failed payment or an expired checkout changes an order only while the order is still waiting on that checkout, so a late notification no longer moves a held, cancelled or refunded order to failed. A notification delivered twice changes nothing, and a second payment for an order already paid is noted for you to check.
* The customer is sent only to a Payments.lk address: https, on payments.lk or a host under it. Any other address, whether the API gave it or it was kept on the order, is refused with an order note and an entry in the error log, and the customer is asked to try again.

= 0.1.1 =
* Corrected the refund notes in the code: sandbox refunds are queued for Payable's sandbox, as live refunds are for Payable, and settle when the processor confirms. Nothing the plugin does changed.

= 0.1.0 =
* First release: hosted checkout, refunds, signed webhooks, Cart and Checkout blocks, High Performance Order Storage.
