add amount parameter
This commit is contained in:
@@ -56,7 +56,7 @@ func qrchFromRequest(r *http.Request) *qrbill.QRCH {
|
||||
},
|
||||
},
|
||||
CcyAmt: qrbill.QRCHCcyAmt{
|
||||
Amt: "",
|
||||
Amt: ifEmpty(r.Form, "amount", ""),
|
||||
Ccy: "CHF",
|
||||
},
|
||||
UltmtDbtr: qrbill.Address{
|
||||
|
||||
@@ -125,6 +125,12 @@ th { text-align: left; }
|
||||
<td>{{ .Udcountry }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>&amount=</td>
|
||||
<td>{{ .Amount }}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>&message=</td>
|
||||
<td>{{ .Message }}</td>
|
||||
@@ -156,6 +162,8 @@ func debugHTML(w http.ResponseWriter, r *http.Request, prefix string, qrch *qrbi
|
||||
Udcountry string
|
||||
|
||||
Message string
|
||||
|
||||
Amount string
|
||||
}{
|
||||
Criban: r.FormValue("criban"),
|
||||
|
||||
@@ -174,6 +182,8 @@ func debugHTML(w http.ResponseWriter, r *http.Request, prefix string, qrch *qrbi
|
||||
Udcountry: r.FormValue("udcountry"),
|
||||
|
||||
Message: r.FormValue("message"),
|
||||
|
||||
Amount: r.FormValue("amount"),
|
||||
})
|
||||
if err != nil {
|
||||
log.Printf("%s %s", prefix, err)
|
||||
|
||||
Reference in New Issue
Block a user