format files
This commit is contained in:
parent
de0e6f2fb8
commit
38cfc33935
2 changed files with 35 additions and 35 deletions
|
|
@ -44,7 +44,7 @@ func PayInvoice(cardPaymentId int, invoice string, amountSats int, loginId strin
|
||||||
|
|
||||||
req.Header.Add("Access-Control-Allow-Origin", "*")
|
req.Header.Add("Access-Control-Allow-Origin", "*")
|
||||||
req.Header.Add("Content-Type", "application/json")
|
req.Header.Add("Content-Type", "application/json")
|
||||||
req.Header.Add("Authorization", "Bearer " + accessToken)
|
req.Header.Add("Authorization", "Bearer "+accessToken)
|
||||||
|
|
||||||
res2, err := client.Do(req)
|
res2, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ func lndhub_payment(w http.ResponseWriter, p *db.Payment, bolt11 decodepay.Bolt1
|
||||||
// {"status": "ERROR", "reason": "error details..."}
|
// {"status": "ERROR", "reason": "error details..."}
|
||||||
// JSON response and then attempts to pay the invoices asynchronously.
|
// JSON response and then attempts to pay the invoices asynchronously.
|
||||||
|
|
||||||
go lndhub.PayInvoice(p.Card_payment_id, param_pr, int(bolt11.MSatoshi / 1000), card_name_parts[0], auth_keys.AccessToken)
|
go lndhub.PayInvoice(p.Card_payment_id, param_pr, int(bolt11.MSatoshi/1000), card_name_parts[0], auth_keys.AccessToken)
|
||||||
|
|
||||||
log.Debug("sending 'status OK' response")
|
log.Debug("sending 'status OK' response")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue