Skip to content

Commit a8640d2

Browse files
committed
migrated to sdk v2.0.1
1 parent e93c521 commit a8640d2

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dotenv": "^8.2.0",
1414
"ejs": "^3.0.1",
1515
"express": "^4.17.1",
16-
"fintecture-client": "^2.0.0",
16+
"fintecture-client": "^2.0.1",
1717
"path": "^0.12.7",
1818
"qrcode": "^1.4.4"
1919
}

pis-connect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,6 @@ function checkConnectParams(params) {
110110
if (Number(params.amount) <= 0) errors.push('Amount should be greater than 0')
111111
}
112112

113-
app.listen(1237, () => console.log("Fintecture App listening on port 1237..."))
113+
const port = process.env.PIS_CONNECT_PORT || 1237;
114+
115+
app.listen(port, () => console.log("Fintecture App listening on port " + port + "..."))

views/pis-connect/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<form name="form1" method="POST" action="/connect">
1414
<div class="form-group">
1515
<label for="amount">* Amount</label>
16-
<input type="number" id="amount" name="amount" value="<%= amount %>">
16+
<input type="number" id="amount" name="amount" value="<%= amount %>" min="0" step="0.01">
1717
</div>
1818
<div class="form-group">
1919
<label for="currency">* Currency</label>

0 commit comments

Comments
 (0)