From e8e2fa982ad6c2e6b758d5d88d250a564fdd9f35 Mon Sep 17 00:00:00 2001 From: Chloe Jung Date: Thu, 9 Mar 2023 17:32:24 +1300 Subject: [PATCH] when calling payinvoice api to the hub, send the login id. --- lnurlw/lnurlw_callback.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnurlw/lnurlw_callback.go b/lnurlw/lnurlw_callback.go index aef02bc..7d9e356 100644 --- a/lnurlw/lnurlw_callback.go +++ b/lnurlw/lnurlw_callback.go @@ -27,6 +27,7 @@ type LndhubAuthResponse struct { type LndhubPayInvoiceRequest struct { Invoice string `json:"invoice"` FreeAmount string `json:"freeamount"` + LoginId string `json:"loginid"` } func lndhub_payment(w http.ResponseWriter, p *db.Payment, bolt11 decodepay.Bolt11, param_pr string) { @@ -106,6 +107,7 @@ func lndhub_payment(w http.ResponseWriter, p *db.Payment, bolt11 decodepay.Bolt1 var payInvoiceRequest LndhubPayInvoiceRequest payInvoiceRequest.Invoice = param_pr payInvoiceRequest.FreeAmount = strconv.Itoa(int(bolt11.MSatoshi / 1000)) + payInvoiceRequest.LoginId = card_name_parts[0] req_payinvoice, err := json.Marshal(payInvoiceRequest) log.Info(string(req_payinvoice))