You need to create the lightning invoice in your lightning wallet app/software first. Then just post the invoice text and clients such as Damus and Astral will render it as a “payment widget”.
Please Login to reply.
Easy peasy!