From a1da9b22133d2b384e7592ee4eb8f4b046317fef Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Mon, 23 Oct 2023 23:30:24 -0700 Subject: [PATCH] Add a note about falling back to lnurl-pay --- uma/uma.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uma/uma.go b/uma/uma.go index 11f8150..91516c8 100644 --- a/uma/uma.go +++ b/uma/uma.go @@ -183,7 +183,8 @@ func GetSignedLnurlpRequestUrl( return unsignedRequest.EncodeToUrl() } -// IsUmaLnurlpQuery Checks if the given URL is a valid UMA request. +// IsUmaLnurlpQuery Checks if the given URL is a valid UMA request. If this returns false, +// You should try to process the request as a regular LNURLp request to fall back to LNURL-PAY. func IsUmaLnurlpQuery(url url.URL) bool { query, err := ParseLnurlpRequest(url) return err == nil && query != nil