Website integration

Connect your shop or PHP site to Ghotz Auth in a few minutes.

↓ Download PHP Website Kit (ZIP) — copy-paste classes + working thank-you and account pages.

Quick setup (3 steps)

  1. Download ghotz-php and upload to your host.
  2. Copy config.example.phpconfig.php and fill values from the dashboard.
  3. On payment success, call GhotzStore::orderPaid() — show the license key to the buyer (see examples/thank-you.php).

What’s in the kit

FileUse
src/GhotzStore.phpAuto-create license when customer pays
src/GhotzClient.phpRegister username + password with a license key
examples/thank-you.phpDemo thank-you page showing the key
examples/create-account.phpForm: key → username + password for your EXE
examples/webhook-handler.phpghotz_deliver_license() for Stripe / WooCommerce

Option A — Auto license on payment (recommended)

Dashboard → Store Auto-Key → webhook secret + product mapping. Then in your shop PHP:

<?php
require 'ghotz-php/src/GhotzStore.php';
$config = require 'ghotz-php/config.php';

$store = new GhotzStore($config['app_secret'], $config['store_secret']);
$result = $store->orderPaid($config['product_id'], 'ORDER-123', 'buyer@email.com');
$key = GhotzStore::firstKey($result);
// Show $key on thank-you page or email it

Webhook URL (reference): POST https://keyghotz.space/api/store/?app=YOUR_APP_SECRET

Details: STORE_WEBHOOK.md in the project root.

Option B — Buyer creates username + password

After they have a license key, link them to create-account.php or call:

<?php
require 'ghotz-php/src/GhotzClient.php';
$config = require 'ghotz-php/config.php';

$client = new GhotzClient($config['app_name'], $config['ownerid'], $config['version']);
$client->init();
$client->register($_POST['username'], $_POST['password'], $licenseKey);

Run this only on your server — never from browser JavaScript.

Option C — WordPress / WooCommerce

Keep app_secret and store_secret in config.php on the server only. Visitors never need your app secret.

All SDK downloads · EXE / C++ →