|
|
@@ -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 { IconAlipay, IconCreditCard, IconStripe } from "~/component/icon"
|
|
|
+import { IconAlipay, IconCreditCard, IconStripe, IconWechat } from "~/component/icon"
|
|
|
import styles from "./billing-section.module.css"
|
|
|
import { createCheckoutUrl, formatBalance, queryBillingInfo } from "../../common"
|
|
|
import { useI18n } from "~/context/i18n"
|
|
|
@@ -208,6 +208,9 @@ export function BillingSection() {
|
|
|
<Match when={billingInfo()?.paymentMethodType === "alipay"}>
|
|
|
<IconAlipay style={{ width: "24px", height: "24px" }} />
|
|
|
</Match>
|
|
|
+ <Match when={billingInfo()?.paymentMethodType === "wechat_pay"}>
|
|
|
+ <IconWechat style={{ width: "24px", height: "24px" }} />
|
|
|
+ </Match>
|
|
|
</Switch>
|
|
|
</div>
|
|
|
<div data-slot="card-details">
|
|
|
@@ -224,6 +227,9 @@ export function BillingSection() {
|
|
|
<Match when={billingInfo()?.paymentMethodType === "alipay"}>
|
|
|
<span data-slot="type">{i18n.t("workspace.billing.alipay")}</span>
|
|
|
</Match>
|
|
|
+ <Match when={billingInfo()?.paymentMethodType === "wechat_pay"}>
|
|
|
+ <span data-slot="type">{i18n.t("workspace.billing.wechat")}</span>
|
|
|
+ </Match>
|
|
|
</Switch>
|
|
|
</div>
|
|
|
<button
|