This commit is contained in:
eric
2026-03-10 07:58:10 -05:00
parent 0c4066173f
commit 114fdcf181
4 changed files with 15 additions and 22 deletions

View File

@@ -7,6 +7,8 @@ import PocketBase from "pocketbase";
import { indexMd } from "./index-content";
import styles from "./index.module.css";
import { getPayEnv, getDeviceFromEnv } from "@/app/lib/payEnv";
import { getPaymentConfig } from "@/config/services.config";
import { getPaymentConfig } from "@/config/services.config";
import { usePayStatusPoll } from "@/app/lib/usePayStatusPoll";
const PB_URL =
@@ -160,10 +162,11 @@ export default function Home() {
const returnUrl = `${window.location.origin}/paid`;
const env = getPayEnv();
const device = getDeviceFromEnv(env);
const totalFee = getPaymentConfig().defaultAmount ?? 880;
redirectToPay({
user_id: userId,
return_url: returnUrl,
total_fee: 8800,
total_fee: totalFee,
type: "vip",
channel: "wxpay",
device,