summaryrefslogtreecommitdiffhomepage
path: root/cloud
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-02 23:28:52 -0400
committerFrank <[email protected]>2025-09-02 23:28:54 -0400
commitc1d754bec9f54836f66181dd37d279f0ffe2e6e5 (patch)
tree76bb46b53defae3a9802d38f6af435659e0393cf /cloud
parentc67b72178761ffd998fdd750b2a36c4568b43f64 (diff)
downloadopencode-c1d754bec9f54836f66181dd37d279f0ffe2e6e5.tar.gz
opencode-c1d754bec9f54836f66181dd37d279f0ffe2e6e5.zip
wip cloud
Diffstat (limited to 'cloud')
-rw-r--r--cloud/app/src/routes/stripe/webhook.ts1
-rw-r--r--cloud/core/src/billing.ts4
2 files changed, 1 insertions, 4 deletions
diff --git a/cloud/app/src/routes/stripe/webhook.ts b/cloud/app/src/routes/stripe/webhook.ts
index 592f4568d..b69d54df8 100644
--- a/cloud/app/src/routes/stripe/webhook.ts
+++ b/cloud/app/src/routes/stripe/webhook.ts
@@ -24,7 +24,6 @@ export async function POST(input: APIEvent) {
if (!workspaceID) throw new Error("Workspace ID not found")
if (!customerID) throw new Error("Customer ID not found")
if (!amount) throw new Error("Amount not found")
- if (amount !== 2118) throw new Error("Amount mismatch")
if (!paymentID) throw new Error("Payment ID not found")
const chargedAmount = 2000
diff --git a/cloud/core/src/billing.ts b/cloud/core/src/billing.ts
index 6f241ba06..1677d159d 100644
--- a/cloud/core/src/billing.ts
+++ b/cloud/core/src/billing.ts
@@ -4,8 +4,6 @@ import { BillingTable, PaymentTable, UsageTable } from "./schema/billing.sql"
import { Actor } from "./actor"
import { fn } from "./util/fn"
import { z } from "zod"
-import { Identifier } from "./identifier"
-import { centsToMicroCents } from "./util/price"
import { User } from "./user"
import { Resource } from "@opencode/cloud-resource"
@@ -72,7 +70,7 @@ export namespace Billing {
product_data: {
name: "opencode credits",
},
- unit_amount: 2118, // $20 minimum + Stripe fee 4.4% + $0.30
+ unit_amount: 2123, // $20 minimum + Stripe fee 4.4% + $0.30
},
quantity: 1,
},