=== Verilo – Damage Claim Verification for WooCommerce ===
Contributors: verilo
Tags: woocommerce, damaged items, claims, returns, shipping
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Check damaged-item claims with a short live phone camera check. Customers start from their order; you see the result on the order screen.

== Description ==

When a customer says an item arrived damaged, you usually get a photo by email and decide on a refund or a replacement from that. Verilo replaces the photo with a short live check. The customer uses their phone camera for a minute or two, one step at a time, and you get a clear Result to decide on.

The check compares what the camera sees with your store:

* **The label against tracking.** The shipping label is read live and matched to the tracking number on the WooCommerce order.
* **The item against your catalogue.** The item is compared with your own product images, so a different product does not pass.
* **A real item, shown now.** Movement, the phone's light and a hand on the item show a physical object in front of the camera, not a screen, a print or an old photo.

The Result is Verified, Needs Review or Unable to Verify, with each check in plain words. Verilo never refunds, rejects or changes an order. Refunds and replacements stay in WooCommerce, with your team.

This plugin connects your WooCommerce store to Verilo.

= For you, the merchant =

* Connect in one click from WooCommerce → Verilo. WooCommerce asks you to approve access on its own screen. No keys are copied.
* A Verilo box on each order screen lists that order's claims, their progress and their Result, with a link to the full claim in Verilo.
* "Verify this order" on the order screen, or "Verify with Verilo" in the order actions, opens Verilo signed in, ready to send the customer a check for that order.
* Shipment tracking saved by common tracking plugins (Shipment Tracking, Advanced Shipment Tracking, WooCommerce Shipping, YITH and others) is read by Verilo, so the shipping label the customer shows can be matched to the order's tracking number.
* Set in Verilo for how many days after an order is completed customers can report a damaged item (30 by default), or turn the form off.

= For your customer =

* On My Account → Orders → View order, an "Item arrived damaged?" section lets them choose the item and the quantity and add an optional note.
* "Start a quick photo check" takes them straight to the check. It runs in the phone's web browser. No app or account is needed.

= In your helpdesk =

Gorgias, Zendesk, Intercom and Richpanel work with a WooCommerce store as they do with a Shopify one. Send the check from the ticket, and the Result comes back to the same ticket as an internal note. No helpdesk? Send checks from the order screen or the Verilo dashboard.

= What you need =

Verilo is a separate service. You need a Verilo account; the plugin creates it when you connect. A new account starts with a 14-day free trial, and plans are billed by card by Verilo, not through WordPress. See https://verilo.app/woocommerce for plans.

WordPress 6.5 or later and WooCommerce 8.0 or later. Works with High-Performance Order Storage and with the classic order screen.

== Installation ==

1. Install and activate WooCommerce.
2. Install this plugin from Plugins → Add New Plugin, or upload the plugin folder to `/wp-content/plugins/`, then activate it.
3. Go to WooCommerce → Verilo and click "Connect to Verilo".
4. Approve access on the WooCommerce screen that follows. Your Verilo account is created for your store and you land in the Verilo dashboard, signed in.
5. In Verilo, choose who can report a damaged item and for how long under Settings → Customer check. Your 14-day free trial starts with the first check you send.

== Frequently Asked Questions ==

= Do I need a Verilo account? =

Yes. The plugin connects your store to Verilo, which runs the checks. Connecting creates the account. A new account starts with a 14-day free trial.

= Does my customer need to install an app? =

No. The check runs in the phone's web browser from a link. It takes a minute or two.

= Does Verilo refund or reject claims? =

No. Verilo gives your team a Result and the evidence behind it. Your team decides, and refunds and replacements stay in WooCommerce.

= What access does Verilo get to my store? =

WooCommerce shows you the access Verilo asks for on its own approval screen, and you approve it there. Verilo uses it to read orders, line items, product images, the customer's name and email address, and tracking, and to register order update notifications. You can disconnect at any time from WooCommerce → Verilo; this removes the access key and the notifications from your store.

= Which tracking plugins does Verilo read? =

WooCommerce Shipment Tracking, Advanced Shipment Tracking, WooCommerce Shipping, YITH WooCommerce Order Tracking and ShipStation, plus the tracking fields other plugins set. Without a tracking number the label cannot be matched to the order, so the best Result is Needs Review.

= How long is the customer's recording kept? =

90 days by default. You can choose 90, 180 or 365 days in Verilo's settings. See the Verilo Privacy Policy for the details.

= Can I turn off the customer claim form? =

Yes. In Verilo, open Settings → Customer check and turn off "Item arrived damaged?". The change reaches your store within ten minutes. You can still verify orders from the order screen.

= Does it work with High-Performance Order Storage? =

Yes. The plugin works with both the HPOS order screen and the older order screen.

= What happens when I deactivate or delete the plugin? =

On deactivation, Verilo is told the store disconnected. Your settings stay for a quick reconnect. On deletion, the plugin also removes the access key and notifications Verilo was given, and all of its own settings.

== Screenshots ==

1. The order screen: the Verilo box lists the order's claims and their progress, with "Verify this order". "Verify with Verilo" is also in the order actions.
2. The customer's order page in My Account, with "Item arrived damaged?" under the order details.
3. The customer chooses the item and the quantity and can add a note, then starts the check.
4. The check opens in the customer's phone browser. No app or account is needed.
5. WooCommerce → Verilo once connected: the connection, and which orders can start a claim and for how long.
6. The Verilo dashboard, opened from WordPress already signed in.

== Changelog ==

= 1.0.0 =
* First release: one-click connect, order screen box and Verify action, customer claim entry on My Account, shipment tracking for Verilo.

== Upgrade Notice ==

= 1.0.0 =
First release.

== External services ==

This plugin connects your store to Verilo (https://verilo.app), a service that checks damaged-item claims with a live phone camera check. The plugin requires it, and contacts Verilo only at the moments below.

* When you click "Connect to Verilo": your browser goes to Verilo with your store address and the address of the plugin's settings page. Verilo then sends you to WooCommerce's own approval screen. If you approve, WooCommerce sends Verilo a REST API key pair for your store. Verilo then sends the plugin a store id and a signing secret, which the plugin saves.
* While connected: Verilo uses that key to read your orders, line items, product images, customer names and email addresses, and shipment tracking details, and it registers WooCommerce webhooks so it receives order updates. The plugin adds shipment tracking details saved by tracking plugins to WooCommerce's order data for this key.
* When you click "Open Verilo dashboard", "Verify this order" or "Verify with Verilo": the plugin sends Verilo your WordPress user's email address and, for Verify, the order id. The order screen box also sends the order id to list that order's claims.
* When a customer clicks "Start a quick photo check": the plugin sends Verilo the order id, the item id, the quantity, the order's billing email address and the customer's optional note, and sends the customer to the check on Verilo.
* When you disconnect, deactivate or delete the plugin: the plugin sends Verilo a disconnect notice.

Every request from the plugin to Verilo is signed with the store's secret.

Verilo Terms of Service: https://verilo.app/terms
Verilo Privacy Policy: https://verilo.app/privacy
