mirror of
https://github.com/believethehype/nostdress.git
synced 2026-06-16 13:59:43 -07:00
Update waitforinvoice.go
This commit is contained in:
+5
-1
@@ -226,7 +226,11 @@ func WaitForInvoicePaid(payvalues LNURLPayValuesCustom, params *Params) {
|
||||
return
|
||||
}
|
||||
var jsonMap map[string]interface{}
|
||||
json.Unmarshal([]byte(string(responseData)), &jsonMap)
|
||||
err = json.Unmarshal([]byte(string(responseData)), &jsonMap)
|
||||
if err != nil {
|
||||
fmt.Print(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
if jsonMap["paid"].(bool) {
|
||||
payvalues.PaidAt = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user