Does WebLN have a optional Zap method yet? Or is this too specific of a usecase to be part of WebLN? Maybe you could add a optional-params param to the lnurl method to facilitate Zaps?
Discussion
Yes I know, but you only get the invoice after all the NIP57 logic is done on the client side. It would be cool for providers like Alby to abstract that logic so that web clients wouldn’t have to worry about it. But for that to happen we would have to mix WebLN with NIP07… what I imagine is:
Website calls webln.zap(amount, lightning address) and my browsers builds a zap request note, let’s the user sign it with one click, passes it to the endpoint, receives the invoice and pay it.