payrexx integration fixed

This commit is contained in:
2023-09-18 14:07:42 +02:00
parent 5c6f189396
commit 9a4d38be31
3 changed files with 2 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ exports.init = function () {
return { return {
getGateway: function ( id ) { getGateway: function ( id ) {
const baseUrl = buildBaseUrl( 'Gateway/' + id + '/' ); const baseUrl = buildBaseUrl( 'Gateway/' + id + '/' );
const url = baseUrl + '&ApiSignature=' + buildSignature(); const url = baseUrl + '&ApiSignature=' + encodeURIComponent( buildSignature() );
return axios.get( url ); return axios.get( url );
}, },
createGateway: function ( params ) { createGateway: function ( params ) {

View File

@@ -14,8 +14,6 @@ const payrexxModule = require( './module.payrexx.js' );
const payrexx = payrexxModule.init(); const payrexx = payrexxModule.init();
const TicketGenerator = new ticket(); const TicketGenerator = new ticket();
payrexx.getGateway( 1 );
let sessionReference = {}; let sessionReference = {};
let waitingClients = {}; let waitingClients = {};
let pendingPayments = {}; let pendingPayments = {};

View File

@@ -4,7 +4,7 @@
"twoFA":"enforce", "twoFA":"enforce",
"twoFAMode":"enhanced", "twoFAMode":"enhanced",
"db":"mysql", "db":"mysql",
"payments":"stripe", "payments":"payrexx",
"name":"libreevent", "name":"libreevent",
"yourDomain":"http://localhost:8080", "yourDomain":"http://localhost:8080",
"mailSender":"libreevent <no-reply@libreevent.janishutz.com>", "mailSender":"libreevent <no-reply@libreevent.janishutz.com>",