Public
TSHC digital products, data, apps and monetization platform
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

TSHC Sovereign Forge

Monetization-first digital product platform for TSHC.

PayPal checkout integration

The production checkout routes are designed to use PayPal Orders v2 server-side. Add these encrypted environment variables before enabling live checkout:

  • PAYPAL_CLIENT_ID
  • PAYPAL_CLIENT_SECRET
  • PAYPAL_MODE = sandbox or live (defaults to sandbox until explicitly changed)

The app should never expose the client secret to the browser. Order creation and capture must remain server-side. If credentials are not present, the Forge falls back to the existing invoice/order-intake flow rather than pretending checkout succeeded.

Revenue flow

Pricing -> order intake -> PayPal checkout or invoice -> payment confirmation -> entitlement activation -> member access.

Owner controls

Owner-only paid-order activation remains available for invoice/manual-payment workflows. Automatic entitlement activation should occur only after a verified PayPal capture.