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