=== WeArePlanet ===
Contributors: Planet Merchant Services Ltd
Tags: payment, WeArePlanet, e-commerce, invoice, psp
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 3.4.6
License: Apache-2.0
License URI: http://www.apache.org/licenses/LICENSE-2.0

Accept payments in WooCommerce with WeArePlanet.

== Description ==

Website: [https://www.weareplanet.com/](https://www.weareplanet.com/)

The plugin offers an easy and convenient way to accept credit cards and all other payment methods listed below fast and securely. The payment forms will be fully integrated in your checkout and for credit cards there is no redirection to a payment page needed anymore. The pages are by default mobile optimized but the look and feel can be changed according the merchants needs.

This plugin will add support for all WeArePlanet payments methods and connect the WeArePlanet servers to your WooCommerce webshop.
To use this extension, a WeArePlanet account is required. Sign up on [WeArePlanet](https://www.weareplanet.com/contact/sales).

== Documentation ==

Additional documentation for this plugin is available:
[here](https://plugin-documentation.weareplanet.com/weareplanet/woocommerce/3.4.6/docs/en/documentation.html).

== Source code and build process ==

This plugin ships a compiled WooCommerce Blocks bundle at `assets/js/frontend/blocks/build/index.js`. The human-readable source code is included in `assets/js/frontend/blocks/src/` alongside `webpack.config.js`.

To rebuild the bundle from source:

1. `cd assets/js/frontend/blocks`
2. `npm ci`
3. `npm run build`

This regenerates `build/index.js` and `build/index.asset.php` from the sources included with the plugin.

== External Services ==

This plugin loads a device-identification script from the WeArePlanet gateway to secure checkout and payment flows.

- **Service:** WeArePlanet device identification
- **Endpoint/domain:** Base gateway URL (default `https://paymentshub.weareplanet.com/`), script path `/s/{spaceId}/payment/device.js`
- **Data sent:** `sessionIdentifier` (value from cookie `wc_weareplanet_device_id`, a unique device/session ID) and the configured space ID in the request path; no payment or PII fields are sent by this script
- **When:** Enqueued on cart/checkout page load; the identifier is stored in the browser for up to one year to keep sessions consistent and prevent fraud
- **Purpose:** Device fingerprinting/session continuity to secure transactions
- **Policies:** See the service provider’s terms of use and privacy policy linked below in the “Privacy Policy” and “Terms of use” sections

== Support ==

Support queries can be issued on the [WeArePlanet support site](https://paymentshub.weareplanet.com/space/select?target=/support).

== Privacy Policy ==

Enquiries about our privacy policy can be made on the [WeArePlanet privacy policies site](https://www.weareplanet.com/privacy-policy).

== Terms of use ==

Enquiries about our terms of use can be made on the [WeArePlanet terms of use site](https://www.datatrans.ch/en/terms-conditions).

== Installation ==

= Minimum Requirements =

* PHP version 5.6 or greater
* WordPress 4.7 up to 6.6
* WooCommerce 3.0.0 up to 9.8.5

= Automatic installation =

1. Install the plugin via Plugins -> New plugin. Search for 'WeArePlanet'.
2. Activate the 'WeArePlanet' plugin through the 'Plugins' menu in WordPress
3. Set your WeArePlanet credentials at WooCommerce -> Settings -> WeArePlanet (or use the *Settings* link in the Plugins overview)
4. You're done, the active payment methods should be visible in the checkout of your webshop.

= Manual installation =

1. Unpack the downloaded package.
2. Upload the directory to the `/wp-content/plugins/` directory
3. Activate the 'WeArePlanet' plugin through the 'Plugins' menu in WordPress
4. Set your credentials at WooCommerce -> Settings -> WeArePlanet (or use the *Settings* link in the Plugins overview)
5. You're done, the active payment methods should be visible in the checkout of your webshop.


== Changelog ==

= 3.4.6 - July 7th 2026 =
- [BugFix] Fixed issue with webhooks not setting correct status; cancelled when they should be successful
- [Tested Against] PHP 8.4.20
- [Tested Against] Wordpress 7
- [Tested Against] Woocommerce 10.9.3
- [Tested Against] PHP SDK 4.8.1
