3 ms·
It uses stripe, so to switch from a single purchase to a recurring payment you basically need to change one line of code: https://github.com/2tablespoons/Thyla
by lost-theory 14y ago
It uses stripe, so to switch from a single purchase to a recurring payment you basically need to change one line of code:
https://github.com/2tablespoons/Thylacine/blob/master/app/models/order.rb#L17 https://github.com/2tablespoons/Thylacine/blob/master/app/mo...
Just change "Charge" to "Customer" and give it a plan ID instead of a price.
- marcamillion 14y agoBut then what manages the plans? Where is the rake task that checks all the subscriptions daily to look for expirations and take action? Where is the functionality for recurring subscriptions? I don't see that anywhere in here.
- lost-theory 14y agoThat's probably true, it doesn't have all those features. I guess you'll have to wait around for someone to add them :) edit: stripe's admin interface does some of what you're asking for (recurring subscriptions), sign up and check it out if you haven't already.