mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
rewrite consumer + testmode utils
This commit is contained in:
@@ -14,7 +14,8 @@ export default async () => {
|
||||
logger.info('[SERVER] Initializing');
|
||||
|
||||
if (config.STRIPE_SECRET) {
|
||||
StripeService.init(config.STRIPE_SECRET, config.STRIPE_WH_SECRET, false);
|
||||
const TEST_MODE = config.MODE === 'TEST';
|
||||
StripeService.init(config.STRIPE_SECRET, config.STRIPE_WH_SECRET, TEST_MODE);
|
||||
logger.info('[STRIPE] Initialized');
|
||||
} else {
|
||||
StripeService.disable();
|
||||
|
||||
Reference in New Issue
Block a user