diff --git a/pass/app/Payment.js b/pass/app/Payment.js index 2afa698b8618a76b36c607ce9e2c6c81204970ab..8f0cf6d132adcba78c872262315f17d30082a245 100644 --- a/pass/app/Payment.js +++ b/pass/app/Payment.js @@ -36,8 +36,8 @@ class Payment { this.id = payment_data.id; this.public_id = "A" + (payment_data.id + config.get("price.number_range.payments")); - this.price = payment_data.price; - this.converted_price = payment_data.converted_price; + this.price = parseFloat(payment_data.price); + this.converted_price = parseFloat(payment_data.converted_price); this.converted_currency = payment_data.converted_currency; this.payment_reference_id = payment_data.payment_reference_id; if (payment_data.payment_processor) { @@ -76,6 +76,7 @@ class Payment { * @returns {number} */ getBruttoPrice() { + console.log(this.price); return this.price.toFixed(2); } diff --git a/pass/config/default.json b/pass/config/default.json index 803f50f6bda0569b5dc0dcab40dbbbe5c0a7996b..4f915c1c538f689550961e7098a252a4323b4cd0 100644 --- a/pass/config/default.json +++ b/pass/config/default.json @@ -4,7 +4,13 @@ "secret": "dq+]Q64f?YLCC=Wsxn:0M.Kr`_t)", "api_token": "no-auth", "database": { - "pg_connection": "postgresql://metager:secure@express_postgres:5432/metager" + "pg_connection": { + "host": "express_postgres", + "port": 5432, + "user": "metager", + "password": "secure", + "database": "metager" + } }, "openid_auth": { "url": "<OPEN ID Base URL>",