Skip to content
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

Recurring Payments #447

Open
Polyomino opened this issue Jul 1, 2018 · 13 comments
Open

Recurring Payments #447

Polyomino opened this issue Jul 1, 2018 · 13 comments
Milestone

Comments

@Polyomino
Copy link

Does a standard for recurring payments belong here?

I think lnd can be made to support recurring payments by issuing macaroons with permissions to spend in the future. I think we should avoid a dependency on macaroons for BOLTs if they aren't already.

Is there an existing work stream in this direction?

@rustyrussell
Copy link
Collaborator

Recurring payments should work with discrete log payments (eg. scriptless scripts), and I've been toying with the idea of a bolt11 extension for 1.1. There are questions over whether we should allow specification of oracles for exchange volatility, but that may be trying to boil the ocean...

@Roasbeef
Copy link
Collaborator

Roasbeef commented Jul 9, 2018

What do you mean precisely by "recurring payments"?

@Roasbeef
Copy link
Collaborator

Roasbeef commented Jul 9, 2018

Or do you mean like "spontaneous payments"?

@Roasbeef
Copy link
Collaborator

Roasbeef commented Jul 9, 2018

In either case, it would seem that this is purely and end to end thing, and doesn't really require a BOLT. But if something emerges and is popular, then we can document it and start to standardize it.

@rustyrussell
Copy link
Collaborator

I assumed he's referring to an invoice which says "pay this amount this often". It's a common request in the Bitcoin world, and makes even more sense for lightning due streaming services.

@cdecker cdecker added this to the Someday milestone Jul 23, 2018
@cdecker
Copy link
Collaborator

cdecker commented Jul 23, 2018

Adding this to the "someday" milestone since we need to first figure out a number of things. For once we need to agree on a format to specify recurring payment times.

Additional feedback from users is encouraged to better define the use-case and the requirements that this feature should consider.

@jb55
Copy link
Contributor

jb55 commented Feb 4, 2019

For a lightning subscription/donation service I'm working on, all I would need is a way to do recurring spontaneous payments. Perhaps a clightning/lnd plugin that does this automatically.

The initial bolt11 could include what data needs to be encrypted in each spontaneous payment (account id, etc), and how often it should be sent.

The node could execute this spontaneous payment automatically until cancelled.

@xgzhc
Copy link

xgzhc commented Dec 9, 2019

wo need a protocol that get dynimic code(an invoice) by static code,static code is address(eg http api) that can return signed invoice and it's public key

@fiatjaf
Copy link
Contributor

fiatjaf commented Dec 9, 2019

@rene78
Copy link

rene78 commented Mar 14, 2021

I have a similar use case: I'd like to pay my landlord via the Lightning network the equivalent amount of e.g. 20$ daily. Would be cool if that was possible 🙂.

@mateuszjarzewski
Copy link

You have no idea how this could rocketlaunch lightning adoption.
No recurring payments is by far the biggest disadvantage (businesswise) to credit cards and other solutions that got recurring payments.

@vincenzopalazzo
Copy link
Contributor

No recurring payments is by far the biggest disadvantage (businesswise) to credit cards and other solutions that got recurring payments.

We have the support with a previous bolt12 support, I think it takes only some time to be integrated. N.B the bolt12 proposal was cut and the part of the recurrent payment was removed.

But I'm pretty sure that it will be an addition in the near future.

@adam248
Copy link

adam248 commented Dec 13, 2023

Any news on this issue?
To at least create a basic standard for allowing invoices to have a recurring option would be great!
It can be as simple as the protocol supporting a recurring message inside the invoice saying you are agreeing to a recurring term described by the invoice but it is fully controlled on the sender's node side (push-only not-pull payments). So the recurring terms are "copied" into the node from the invoice.
That way the sender at any time can log in to their node and cancel the recurring payment any time they wish.
Maybe an added option to notify the receiving party of the cancellation might be nice but not critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests