Ah, in that case I'd just use a lightning address! Whoever uses your script can just put in a new lightning address and begin making money with it; lightning addresses can be thought of as a human readable lnurl-pay code. Lots of custodial wallets support lightning addresses and lots of 3rd parties allow you to use them as a lightning address for non-custodial nodes.
Yes, it seems to me a simple and customizable solution for each user to use the ln addrs they want, the problem is that I have not found a way to decode that lnaddrs to generate an invoice, I found this service https://lightningdecoder.com/, but it does not work properly, at least in its front end and I have not tried to build it myself .... I also discovered https://docs.bitnob.com/reference/decode-a-lightning-address but it is KYC and I don't like that. Then I tried to simply use a url for example: 'lightning:gzoo@stacker.news' but on phones no wallet reacts and just opens the browser, how do you do it here on stacker.news? it works fine.