ACG Docs
Pro & Payments

Pro & Payments

How the Pro one-time purchase works, including Creem checkout and the GitHub invitation flow.

The portal sells AI Cost Gate Pro as a one-time source-code purchase. There are no subscriptions and no recurring charges.

What you get

For a single $29 payment you receive:

  • Full access to the private ai-cost-gate GitHub repository (collaborator role).
  • The docker-compose deployment we ship.
  • All updates within the v1.x line.
  • 14-day refund window.

How checkout works

  1. Click "Get Pro" on the Pro page.
  2. The portal creates a pro_license row in the portal's database with status=pending.
  3. The portal calls Creem's /v1/checkouts API with a success_url pointing back to /checkout/thanks.
  4. Creem redirects the buyer to a payment page.
  5. After payment, Creem sends a checkout.completed webhook to the portal.
  6. The webhook handler:
    • Verifies the HMAC signature.
    • Marks the pro_license row active.
    • Calls GitHub's PUT /repos/{owner}/{repo}/collaborators/{username} to invite the buyer.
    • Sends a confirmation email to the buyer.
  7. The buyer is redirected to /checkout/thanks and given a 14-day refund window.

Refund policy

See the Refund policy. Refunds within 14 days are honoured. The pro_license row is marked refunded and the GitHub invitation is revoked.

See also

  • Webhooks — for the webhook handler implementation.

On this page