add payrexx as payment provider

This commit is contained in:
2023-08-12 12:47:35 +02:00
parent 2c7e0f39bc
commit e634ac5381
17 changed files with 463 additions and 44 deletions

View File

@@ -74,6 +74,10 @@ class GETHandler {
} );
} else if ( call === 'getCurrency' ) {
resolve( this.settings.currency );
} else if ( call === 'getAdminAccounts' ) {
// TODO: Finish
} else if ( call === 'getSettings' ) {
resolve( this.settings );
} else {
reject( { 'code': 404, 'error': 'Route not found' } );
}

View File

@@ -106,6 +106,15 @@ class POSTHandler {
} ).catch( error => {
reject( { 'code': 500, 'error': error } );
} );
} else if ( call === 'createAdminAccount' ) {
// TODO: Finish
} else if ( call === 'updateAdminAccount' ) {
// TODO: Finish
} else if ( call === 'deleteAdminAccount' ) {
// TODO: Finish
} else if ( call === 'updateSettings' ) {
// TODO: Finish
// TODO: Parse all events and update currency
} else {
reject( { 'code': 404, 'error': 'Route not found' } );
}