File size: 2,308 Bytes
0db153b 0da73e4 0db153b 0da73e4 0db153b 0da73e4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | ---
title: Scottzilla Payments
emoji: π°
colorFrom: green
colorTo: yellow
sdk: docker
app_port: 7860
pinned: true
---
# π° Scottzilla Payments
Multi-provider payment server for the Scottzilla AI platform. Handles subscriptions, API key management, and usage metering across **Stripe, PayPal, Coinbase Commerce, Cash App (via Square), and Gumroad**.
## Pricing Tiers
| Tier | Price | Requests/day | Models | Features |
|---|---|---|---|---|
| **Free** | $0 | 25 | ChatGPT-5 only | Basic chat |
| **Pro** | $9.99/mo | 500 | All 16 models | Smart routing, tools, priority |
| **Ultra** | $29.99/mo | 5,000 | All 16 + image gen | Everything + image editing |
| **Enterprise** | $99.99/mo | Unlimited | All + dedicated | SLA, custom models, API |
| **Pay-as-you-go** | $0.001/req | Unlimited | All 16 models | No subscription needed |
## Payment Providers
| Provider | Subscriptions | One-time | Crypto | Link |
|---|---|---|---|---|
| **Stripe** | β
| β
| β | Cards, Apple Pay, Google Pay |
| **PayPal** | β
| β
| β | PayPal balance, cards |
| **Coinbase Commerce** | β | β
| β
| BTC, ETH, USDC, etc. |
| **Square (Cash App)** | β | β
| β | Cash App Pay |
| **Gumroad** | β
| β
| β | Simple checkout, built-in affiliate |
## API Endpoints
| Endpoint | Description |
|---|---|
| `GET /` | Dashboard + status |
| `POST /api/keys/create` | Generate new API key |
| `GET /api/keys/verify/:key` | Verify key + get tier/usage |
| `POST /api/checkout/:provider` | Create checkout session |
| `POST /api/webhooks/:provider` | Payment webhooks |
| `GET /api/usage/:key` | Usage stats |
| `GET /api/pricing` | Current pricing tiers |
## Setup
Add these secrets in Space Settings:
| Secret | Required | Description |
|---|---|---|
| `STRIPE_SECRET_KEY` | For Stripe | `sk_live_...` or `sk_test_...` |
| `STRIPE_WEBHOOK_SECRET` | For Stripe | `whsec_...` |
| `PAYPAL_CLIENT_ID` | For PayPal | OAuth client ID |
| `PAYPAL_CLIENT_SECRET` | For PayPal | OAuth secret |
| `COINBASE_API_KEY` | For Coinbase | Commerce API key |
| `COINBASE_WEBHOOK_SECRET` | For Coinbase | Webhook shared secret |
| `SQUARE_ACCESS_TOKEN` | For Cash App | Square access token |
| `GUMROAD_ACCESS_TOKEN` | For Gumroad | API access token |
| `JWT_SECRET` | Required | Random string for API key signing |
|