-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiment with Bolt12 #46
Comments
I hear it more often from users, signaling demand! :) https://feedback.getalby.com/-alby-hub-request-a-feature/posts/bolt-12-support- |
There's an open PR here: #307 It needs a bit more work and planning. We will do a BOLT 12 hackday in the future and can maybe get some minimal BOLT-12 features in |
Would love to see Bolt12 be available as this could allow us to offer subscription services for paid content without a new invoice having to be generated each month. |
@redimongo note that this is not limited to Bolt12 - you can already do this with lightning addresses or NWC. Bolt12 simply allows the invoice to be requested over the lightning network, rather than using an external protocol. |
@rolznz oh I did not know, we are using the following code to generate our invoices at the moment
Would love to know how we make them a monthly subscription so that we can offer this an option. Thanks |
@redimongo as long as you have the connection secret of the user's wallet, you can create an invoice from your own wallet, and pay it with the user's wallet. We have an example app that does scheduled payments based on this idea: https://zapplanner.albylabs.com/ Most of the complexity is setting up the scheduling to actually make payments on time. ZapPlanner also has some support for setting up subscriptions with some data attached to them. e.g. this link |
@rolznz yes that will kinda work, however that has to be done on the player side am guessing (without looking into atm) this wont allow us to use a L402. So the client (listener) is on a podcast app like truefans.fm Might have to look into it more, as when the person stops paying for it, we want to stop feeding them the paid content. I can see it being able to be done on the player side, but ideally I need to do the first part on our side so we know exactly the amount a person is paying. But thanks, I'll dig around the code. |
@redimongo NWC should work for all your requirements. As long as you keep track of paid invoices for users in your system, you can tell how much each user has paid. |
It would be great to generate a static payment identifier Bolt12 offer that I could share. Even better if my friends & family sub accounts could get their own static payment identifier. |
See #47
The text was updated successfully, but these errors were encountered: