Three moving parts. One clean outcome: accurate attribution + clean payouts.
Social Sales creates a unique slug for each affiliate × product. Clicks are logged, then the buyer lands on a clean product page.
Checkout metadata contains the order + link IDs, so the webhook can mark the order paid and lock in the split: platform fee, affiliate commission, seller net.
Orders become eligible after 30 days (to reduce refund/chargeback risk). Sellers and affiliates can request payouts once funds clear.
schema.sql into MySQL.config/local.example.php → config/local.php and fill keys.https://socialsales.cc/stripe/webhook.php