Bahari KYC for WHMCS
====================

Requirements: WHMCS 8.x, PHP 7.4 or newer with curl.

Install
1. Upload the contents of this zip to the WHMCS root folder. It creates modules/addons/baharikyc/.
2. In WHMCS admin open Setup > Addon Modules (System Settings > Addon Modules on newer versions),
   activate Bahari KYC, click Configure and give access to the admin roles that should use it.
3. Paste a secret API key from the Bahari KYC dashboard (API keys). Keys start with sk_live_.
4. In the Bahari KYC dashboard open Webhooks and add an endpoint with the URL shown on
   Addons > Bahari KYC. Copy the signing secret (whsec_...) into the module settings.
5. Open Addons > Bahari KYC. Connection should say OK.

Client area
  Clients verify at index.php?m=baharikyc. Link it from your menu or emails.
  A panel on the client area home shows until the client is verified (can be turned off).

Settings
  Require verification at checkout   Off, all orders, or only products in the listed group ids.
  Hold setup for unverified clients   Automatic module create is stopped until the client is approved.
  Run held setup after approval       Paid services still Pending are set up when the client is approved.
  Admins can run setup manually       Create clicked by an admin is not stopped.
  Declined clients can try again      Otherwise they need to contact support.

Data
  Only the session id, status and reason codes are stored, in the table mod_baharikyc.
  Photos and document data stay in Bahari KYC. Deactivating the module keeps the table.

Help and documentation: https://kyc.baharione.com/docs#whmcs
Support: support@baharione.com
