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

@@ -13,7 +13,9 @@ export interface PaymentConfig {
apiUrl: string;
provider: "zpay" | "xorpay";
zpaySubmitUrl: string;
/** nomadvip 专用接口路径(固定 ZPAY不影响 digital/cnomadcna */
/** 默认金额8.8 元 = 880 */
defaultAmount?: number;
/** nomadvip 专用接口路径 */
nomadvipPayPath: string;
}
@@ -54,6 +56,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: 880,
nomadvipPayPath: "/nomadvip/payh5",
};
}