merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit e63bb929ca332764ce0be62c519106769ad03423
parent 146fc36ae82153ebc60f6ff2b4d2799af64ab5fe
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu, 15 Oct 2015 23:38:34 +0200

adding choice of mint when creating a reserve

Diffstat:
Msrc/frontend/fake_wire_transfer.php | 3++-
Msrc/frontend/index.html | 4++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git 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 @@ -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">