merchant

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

commit ec1479097ab7f58a0bf9ba43a50af2bee0e15a40
parent e915d79ef1a61d00e83c21802a7eb1d905a237a1
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Tue,  7 Jul 2015 10:08:27 +0200

adding currency selection

Diffstat:
Msrc/website/new/create-reserve-form.html | 13++++++++++---
Msrc/website/new/merchant.js | 4+++-
2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/website/new/create-reserve-form.html b/src/website/new/create-reserve-form.html @@ -1,11 +1,18 @@ <form id="reserve-form" name="tform" action="never_used" onsubmit="return MERCHtrigSubmission()" method="POST"> Which mint? Indicate mint's URL below :<br><input id="mint-url" type="text" name="pbk">demo.taler.net</input><br> - Your Public Key Here :<br><input type="text" name="pbk">X6CK1DWTT895YK5RAJP77H6K673FBGR1KJ3ZGXFD2N67TJDE7VBG</input><br> - How many Kudos? :<br> - <select id="taler-amount" name="kudos"> + Your Public Key Here :<br><input type="text" name="pbk"></input><br> + Amount :<br> + <select id="taler-amount" name="kudos-amount"> <option value="1">1</option> <option value="5">5</option> <option value="10">10</option> </select><br><br> + Currency :<br> + <select id="taler-amount-currency" name="kudos-currency"> + <option value="1">Kudos</option> + <option value="5">Euro</option> + <option value="10">Yemen</option> + </select><br><br> + <input type="submit" value="Submit"></input><br> </form> diff --git a/src/website/new/merchant.js b/src/website/new/merchant.js @@ -60,7 +60,8 @@ document.body.addEventListener("taler-wallet-installed", MERCHfirstStep, false, /* notify the extension about the submission. That way it will be possible to retrieve -the mint's URL and/or other info. from the filled form +the mint's URL and/or other info. from the filled form. Actually, the extension will +accomplish the POST too. */ function MERCHtrigSubmission(){ @@ -76,4 +77,5 @@ document.body.dispatchEvent(subEvent); // always return false so that the post is actually done by the extension return false; + }