aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontend/fake_wire_transfer.php3
-rw-r--r--src/frontend/index.html4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/frontend/fake_wire_transfer.php b/src/frontend/fake_wire_transfer.php
index 06051fba..68723780 100644
--- a/src/frontend/fake_wire_transfer.php
+++ b/src/frontend/fake_wire_transfer.php
@@ -41,6 +41,7 @@
// Evaluate form
$reserve_pk = $_POST['reserve_pk'];
$kudos_amount = $_POST['kudos_amount'];
+$mint = $_POST['mint_url'];
// pack the JSON
$json = json_encode (array ('reserve_pub' => $reserve_pk,
@@ -52,7 +53,7 @@ $json = json_encode (array ('reserve_pub' => $reserve_pk,
// craft the HTTP request
$req = new http\Client\Request ("POST",
- "http://demo.taler.net/admin/add/incoming",
+ "http://" . $mint . "/admin/add/incoming",
array ("Content-Type" => "application/json"));
$req->getBody()->append ($json);
diff --git a/src/frontend/index.html b/src/frontend/index.html
index 3904889d..165bdee7 100644
--- a/src/frontend/index.html
+++ b/src/frontend/index.html
@@ -83,6 +83,10 @@
<br>
Paste your reserve public key here (right-click, "paste"):
<input type="text" name="reserve_pk"></input>
+ <select id="mint" name="mint_url">
+ <option value="demo.taler.net">mint @taler.net</option>
+ <option value="localhost:4241">local mint (port 4241)</option>
+ </select>
<br>
Amount to credit to your reserve:
<select id="amount" name="kudos_amount">