This commit is contained in:
eric
2026-03-12 04:25:12 -05:00
parent 528044db7d
commit 39a8358af1
7 changed files with 190 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ export interface PaymentConfig {
apiUrl: string;
provider: "zpay" | "xorpay";
zpaySubmitUrl: string;
/** 默认金额(分),测试用1元 */
/** 默认金额(分),88元=8800分 */
defaultAmount?: number;
/** nomadvip 专用接口路径 */
nomadvipPayPath: string;
@@ -59,7 +59,7 @@ export function getPaymentConfig(): PaymentConfig {
provider: (process.env.PAYMENT_PROVIDER as "zpay" | "xorpay") || "zpay",
zpaySubmitUrl:
process.env.ZPAY_SUBMIT_URL || "https://zpayz.cn/submit.php",
defaultAmount: 100,
defaultAmount: 8800,
nomadvipPayPath: "/nomadvip/payh5",
};
}