ScottzillaSystems commited on
Commit
0da73e4
·
verified ·
1 Parent(s): 0db153b

feat: Scottzilla Payments — multi-provider payment + API key management

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