load payment gateway settings

This commit is contained in:
2023-08-30 16:07:53 +02:00
parent 6a3127a35a
commit f0d433a0eb
9 changed files with 133 additions and 10 deletions

View File

@@ -93,7 +93,11 @@ class GETHandler {
reject( { 'code': 500, 'message': 'ERR_DB: ' + err } );
} );
} else if ( call === 'getPaymentGatewaySettings' ) {
pluginManager.loadPaymentGatewaySettings();
this.pluginManager.loadPaymentGatewaySettings().then( dat => {
resolve( dat );
} ).catch( err => {
reject( { 'code': 500, 'error': err } );
} );
} else if ( call === 'getSettings' ) {
resolve( this.settings );
} else {