summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/routes
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-03-11 03:31:24 -0400
committerFrank <[email protected]>2026-03-11 18:09:41 -0400
commit4a81df190c58c29418d8c32e9402cf71afa61bc8 (patch)
tree615173720534f6180c702208be8db218b77b27d8 /packages/console/app/src/routes
parent75cae81f75ad3058fbace67e0674aef30b9021c7 (diff)
downloadopencode-4a81df190c58c29418d8c32e9402cf71afa61bc8.tar.gz
opencode-4a81df190c58c29418d8c32e9402cf71afa61bc8.zip
zen: add alipay for go sub
Diffstat (limited to 'packages/console/app/src/routes')
-rw-r--r--packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx b/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx
index db89a1c9e..d966f38d3 100644
--- a/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/billing/billing-section.tsx
@@ -3,7 +3,7 @@ import { createMemo, Match, Show, Switch, createEffect } from "solid-js"
import { createStore } from "solid-js/store"
import { Billing } from "@opencode-ai/console-core/billing.js"
import { withActor } from "~/context/auth.withActor"
-import { IconCreditCard, IconStripe } from "~/component/icon"
+import { IconAlipay, IconCreditCard, IconStripe } from "~/component/icon"
import styles from "./billing-section.module.css"
import { createCheckoutUrl, formatBalance, queryBillingInfo } from "../../common"
import { useI18n } from "~/context/i18n"
@@ -205,6 +205,9 @@ export function BillingSection() {
<Match when={billingInfo()?.paymentMethodType === "link"}>
<IconStripe style={{ width: "24px", height: "24px" }} />
</Match>
+ <Match when={billingInfo()?.paymentMethodType === "alipay"}>
+ <IconAlipay style={{ width: "24px", height: "24px" }} />
+ </Match>
</Switch>
</div>
<div data-slot="card-details">
@@ -218,6 +221,9 @@ export function BillingSection() {
<Match when={billingInfo()?.paymentMethodType === "link"}>
<span data-slot="type">{i18n.t("workspace.billing.linkedToStripe")}</span>
</Match>
+ <Match when={billingInfo()?.paymentMethodType === "alipay"}>
+ <span data-slot="type">{i18n.t("workspace.billing.alipay")}</span>
+ </Match>
</Switch>
</div>
<button