exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit aa75ad4e1c4e31f61c0aaf692fb99220df6cfb2d
parent 4b5fc7dc0e3fd3be4a00cdc76ce86658b9485b93
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Sat, 14 Nov 2015 22:00:07 +0100

fetching mint URL from form server side handler

Diffstat:
Mdemo/bank/fake_wire_transfer.php | 2+-
Mdemo/bank/index.html | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/demo/bank/fake_wire_transfer.php b/demo/bank/fake_wire_transfer.php @@ -41,7 +41,7 @@ // Evaluate form $reserve_pk = $_POST['reserve_pk']; $kudos_amount = $_POST['kudos_amount']; -$mint = $_SERVER['SERVER_NAME']; +$mint = $_POST['mint_rcv']; // check if the webform has given a well formed amount $ret = preg_match ('/[0-9]+(\.[0-9][0-9]?)? [A-Z]+/', $kudos_amount, $matches); diff --git a/demo/bank/index.html b/demo/bank/index.html @@ -58,7 +58,7 @@ <option value="10.50 KUDOS">10.50 KUDOS</option> <option value="1000.3 KUDOS">1000.3 KUDOS</option> </select> - <input type="text" id="kudos-mint" hidden></input> + <input type="text" name="mint_rcv" id="kudos-mint" hidden></input> <input id="select-mint" type="button" value="Select mint"