's'
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user