Compare View
Commits (2)
Changes
Showing 3 changed files Side-by-side Diff
lib/partner.js
... | ... | @@ -95,7 +95,7 @@ function _topUpRequest(task, isAdvice) { |
95 | 95 | logger.info('Got XMLRPC response from partner for', {method: xmlrpcMethod, trx_id: task.trx_id, destination: task.destination, response: value}); |
96 | 96 | matrix.last_topupRequest_ack = value; |
97 | 97 | |
98 | - const balance = st24.extractBalanceFromMsg(value.MESSAGE, config.balance_pattern) || null; | |
98 | + const balance = st24.extractBalanceFromMsg(value.MESSAGE, config.partner.balance_pattern || config.balance_pattern) || null; | |
99 | 99 | |
100 | 100 | if (balance) { |
101 | 101 | logger.verbose('TOPUPREQUEST: Balance from supplier extracted', { |
package-lock.json