diff --git a/db.go b/db.go index 064c1a1..5b37025 100644 --- a/db.go +++ b/db.go @@ -40,8 +40,10 @@ func SaveName( } } + params.Name = name + // check if the given data works - if inv, err = makeInvoice(params, 1000); err != nil { + if inv, err = makeInvoice(params, 1000, &pin); err != nil { return "", "", fmt.Errorf("couldn't make an invoice with the given data: %w", err) } diff --git a/index.html b/index.html index 616513a..ed4c865 100644 --- a/index.html +++ b/index.html @@ -58,6 +58,7 @@