mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
payment gateway settings now fully working
This commit is contained in:
@@ -113,7 +113,7 @@ class POSTHandler {
|
||||
reject( { 'code': 500, 'error': error } );
|
||||
} );
|
||||
} else if ( call === 'createAdminAccount' ) {
|
||||
// TODO: Finish
|
||||
db.writeDataSimple( 'admin', 'email', data.email )
|
||||
} else if ( call === 'updateAdminAccount' ) {
|
||||
// TODO: Finish
|
||||
} else if ( call === 'deleteAdminAccount' ) {
|
||||
|
||||
@@ -32,6 +32,7 @@ class PluginManager {
|
||||
|
||||
loadPaymentGatewaySettings () {
|
||||
return new Promise( ( resolve, reject ) => {
|
||||
this.paymentGateway = JSON.parse( fs.readFileSync( path.join( __dirname + '/../../config/settings.config.json' ) ) ).payments;
|
||||
fs.readFile( path.join( __dirname + '/payments/' + this.paymentGateway + '/configOptions.json' ), ( err, optionsBuffer ) => {
|
||||
if ( err ) reject( err );
|
||||
fs.readFile( path.join( __dirname + '/payments/' + this.paymentGateway + '/config.payments.json' ), ( err, configBuffer ) => {
|
||||
|
||||
@@ -12,5 +12,5 @@
|
||||
"currency":"CHF",
|
||||
"gcInterval":300,
|
||||
"ticketTimeout":900,
|
||||
"startPage": "default"
|
||||
"startPage":"default"
|
||||
}
|
||||
Reference in New Issue
Block a user