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.
config.example.php → config.php and fill values from the dashboard.GhotzStore::orderPaid() — show the license key to the buyer (see examples/thank-you.php).| File | Use |
|---|---|
src/GhotzStore.php | Auto-create license when customer pays |
src/GhotzClient.php | Register username + password with a license key |
examples/thank-you.php | Demo thank-you page showing the key |
examples/create-account.php | Form: key → username + password for your EXE |
examples/webhook-handler.php | ghotz_deliver_license() for Stripe / WooCommerce |
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.
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.
payment_complete, include examples/webhook-handler.php and call ghotz_deliver_license('WC-' . $orderId, $email).create-account.php?key=....app_secret and store_secret in config.php on the server only. Visitors never need your app secret.