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

Manage recuring payment #42

Closed
Tirodem opened this issue May 14, 2023 · 8 comments · Fixed by #118
Closed

Manage recuring payment #42

Tirodem opened this issue May 14, 2023 · 8 comments · Fixed by #118
Assignees
Labels
Donator:NPR enhancement New feature or request

Comments

@Tirodem
Copy link
Contributor

Tirodem commented May 14, 2023

Sources for Bitcoin :

Sources for Lightning :

Sources for Stripe :

Product / UI impact :
As we want to provide our users a common cart allowing them to mix merch buy, crowdfunding & tipping, I'm not sure that we'll be able to do that in term of payment.
The simplest way might be to associate 2 payment calls on the same order.
We have to dig & discuss the topic.

@Tirodem Tirodem added the enhancement New feature or request label May 14, 2023
@Tirodem Tirodem changed the title Manage recuring payment with Lightning & Bitcoin Manage recuring payment May 14, 2023
@Tirodem Tirodem added the coyote-review need coyote review / estimation before going further label May 16, 2023
@coyotte508
Copy link
Collaborator

Yes this is technical. ( There is also https://suredbits.com/recurring-subscriptions-on-bitcoin-implemented-with-dlcs/ )

Maybe a first step would be to send a NostR/email message a few days before the renewal, asking the user to renew the subscription.

And maybe allow a user to renew X months at once: pay 6X the amount to subscribe for 6 months.

Then we can go more technical for other solutions but I think the above would be the simplest at first.

@coyotte508 coyotte508 removed the coyote-review need coyote review / estimation before going further label May 17, 2023
@Tirodem
Copy link
Contributor Author

Tirodem commented May 17, 2023

Alter-proposition seems reasonnable.
I'm asking the boss.
I'll defend it.

@Tirodem
Copy link
Contributor Author

Tirodem commented May 29, 2023

@coyotte508 sorry for the late reply, forgot to reply to this one
Idea is validated
We won't have recurring payement.
But each X period (month in prod, in fact probably each day, 1 month after the last payment / subscription date, and each day or hour for test purpose), we'll send a payment invite with Bitcoin or Lightning, depending of what was selected on the 1st order.
We'll need to manage unsubscription, so, let's consider an option when we answer "Unsubscribe {id}" to nostr-bot to breack a subscription.

@coyotte508 coyotte508 self-assigned this May 31, 2023
@coyotte508 coyotte508 mentioned this issue Jun 1, 2023
2 tasks
@Tirodem
Copy link
Contributor Author

Tirodem commented Jun 2, 2023

@coyotte508 is it possible to send the payment request like every 6 hours instead of every month, for test time ?

@coyotte508 coyotte508 reopened this Jun 2, 2023
@coyotte508
Copy link
Collaborator

@Tirodem I haven't fully tested the feature yet will tell you when it's 👍 (merged to test easier on the platform)

@coyotte508 is it possible to send the payment request like every 6 hours instead of every month, for test time ?

https://dev-bootik.pvh-labs.ch/admin/config I set it to renew every hour, with reminder 5 minutes before expiration. It's configurable.

@Tirodem
Copy link
Contributor Author

Tirodem commented Jun 2, 2023

Yes, perfect, I'll check the notifications tomorrow (or in 45mn, I'm finishing Black Panther 2, an hour will pass easily)

@coyotte508
Copy link
Collaborator

ok @Tirodem ready to test

@Tirodem
Copy link
Contributor Author

Tirodem commented Jun 12, 2023

I was sure to have close this issue.
It's working, I'm closing it right now ✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Donator:NPR enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants