=== IdentifyOrg Verification ===
Contributors: identifyorg
Tags: kyc, identity verification, bvn, nin, nigeria
Requires at least: 5.8
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

Verify BVN, NIN, driver's licence, bank accounts, companies, VAT numbers, phone numbers, faces and documents from WordPress, with the IdentifyOrg API.

== Description ==

IdentifyOrg Verification connects your WordPress site to the [IdentifyOrg](https://identifyorg.com) API so you can check who you are dealing with without writing a line of code, or build your own flow with a simple PHP function.

**Checks included**

* BVN, NIN and driver's licence verification (Nigeria)
* Bank account and BVN-to-account match
* Company lookups: Nigerian CAC and tax ID, plus registries in the UK, Norway, Czechia, France, the US and the EU, and VAT number validation
* AML, sanctions and politically exposed person (PEP) screening
* Address verification
* Phone verification by SMS code
* Face match, liveness and ID document checks

**Collect payments**

* `[identifyorg_pay amount="5000" description="Deposit"]` puts a pay button on any page (leave the amount out to let the payer choose).
* A WooCommerce payment gateway: customers pay by card, bank transfer or USSD on a secure IdentifyOrg page and the order completes when the payment is confirmed.
* Money, minus the fee, goes to your IdentifyOrg balance. Optional webhook for instant order updates.

**Verify your own users**

* `[identifyorg_kyc]` shows a Verify my identity button for signed-in users. They complete the steps (ID number, selfie, liveness) on a secure IdentifyOrg page and the result is saved on their profile and shown in the Users list.
* Optionally require verification before WooCommerce checkout.
* A ready-made flow and a verification page are created for you when you connect your account, and you choose what to verify (ID number, selfie match, liveness, address, bank account and more) right in the plugin.

**Sell on WhatsApp**

* Link your IdentifyOrg WhatsApp number to your shop in one click. Customers send MENU, pick products, confirm and get a payment link in the chat.
* Orders from WhatsApp become WooCommerce orders (other shop plugins can take them with a filter), and the customer can be messaged on WhatsApp when the order is paid, shipped or cancelled.
* An assistant that answers customers' questions can be taught from your website.
* Optional website chat box.

**Built-in help**

A Help and guides page in the plugin explains every feature step by step, with troubleshooting.

**Three ways to use it**

1. Shortcodes: `[identifyorg_check type="nin"]` for one check, `[identifyorg_verify]` for a picker with every check you turned on.
2. The "IdentifyOrg check" block in the editor.
3. In your own theme or plugin code: `identifyorg_verify( 'bvn', array( 'bvn' => '12345678901' ) )`, with the filters `identifyorg_before_request` and `identifyorg_checks` and the action `identifyorg_verified` to hook into.

**Built to protect your wallet and your visitors**

* Your API key stays on the server and is never sent to the browser. You can keep it in `wp-config.php` with `define( 'IDENTIFYORG_API_KEY', '…' );`.
* Checks are for signed-in users by default, with an hourly limit per person, a hidden spam trap and a nonce on every request.
* An optional "Secured by IdentifyOrg" badge under your forms, which you switch on or off yourself.
* Results show a plain verdict such as "Match". Personal details are hidden unless you choose to show them.

== External service ==

This plugin sends the details a person types into a check form (for example a BVN, NIN, name, phone number, company number or an uploaded image) to the IdentifyOrg API at https://api.identifyorg.com so the check can be run. If you use the built-in sign-up on the settings page, the business name, email address, phone number and password you enter are sent once to IdentifyOrg to create your account; the password is not stored on your site. When a customer pays, their name, email, the amount and what it is for are sent to IdentifyOrg, and they are taken to an IdentifyOrg payment page. When a signed-in user starts identity verification, their name, email, billing phone number and a reference are sent to IdentifyOrg and they are taken to an IdentifyOrg page to complete it. When you connect a WhatsApp number, your site's order address and public price list (product names, prices and SKUs) are shared with IdentifyOrg so customers can order on WhatsApp, and WhatsApp customers' order details (name, phone, address, items) are sent to your site. If you switch on the website chat box, a small script is loaded from https://identifyorg.com/sitechat/widget.js on your public pages (off by default). Nothing is sent until someone submits a form, you submit the sign-up or sign-in form, or your code calls the plugin, and nothing is sent when the plugin is only active.

An IdentifyOrg account and API key are required. Free test keys are available.

* Service: https://identifyorg.com
* Terms of service: https://identifyorg.com/terms
* Privacy policy: https://identifyorg.com/privacy

== Installation ==

1. Upload the plugin through Plugins, Add New, Upload Plugin, or search for it in the plugin directory, then activate it.
2. Go to Settings, IdentifyOrg and fill in the short form: your account and free test key are created for you. Already have an account? Sign in there to create a key, or paste one.
3. When you are ready for real checks, confirm your email, create a live key and use the Fund your wallet button.
4. Add `[identifyorg_verify]` to any page.

== Frequently Asked Questions ==

= Does it cost anything? =

The plugin is free. Each live check uses your IdentifyOrg wallet at the per-check price shown on identifyorg.com. Test keys are free.

= Can anonymous visitors run checks? =

Only if you allow it in Settings. By default only signed-in users can, so strangers cannot use up your wallet.

= Where do I see the full result? =

In your IdentifyOrg dashboard under Logs. The page shows only a verdict unless you choose to show details.

== Changelog ==

= 1.0.0 =
* First release.
