WIP chargebee integration sketch

This commit is contained in:
Lukas F. Hartmann
2021-05-23 23:53:41 +02:00
parent 6ef1f8fba6
commit 0a1bd2a107
6 changed files with 140 additions and 60 deletions

View File

@@ -23,6 +23,8 @@ const express = require('express');
const app = express();
const serveStatic = require('serve-static');
const chargebee = require('chargebee');
const isProduction = app.get('env') === 'production';
// workaround for libssl_conf.so error triggered by phantomjs
@@ -110,6 +112,14 @@ if (app.get('env') == 'development') {
module.exports = app;
// ChargeBee Integration (Optional)
if (config.get('chargebee_integration')) {
chargebee.configure({
site: config.get('chargebee_site'),
api_key: config.get('chargebee_api_key')
});
}
// CONNECT TO DATABASE
db.init();