Hacker Timesnew | past | comments | ask | show | jobs | submitlogin
Subscribely: Create your subscription site using our boilerplate (Stripe-ready) (github.com/sockclub)
60 points by wolfparade on July 9, 2012 | hide | past | favorite | 12 comments


Neat. I built something similar, it's a Flask blueprint for doing stripe charges/subscriptions:

https://bitbucket.org/lost_theory/flask-stripe-blueprint

It's meant to be integrated into an existing flask application (just override & instantiate the blueprint, then mount it on your app).


Thanks for sharing, I can't believe all this time I wasn't aware templates have {% extends %} and {%block ...%}.

Compared to the Candy Japan codebase, this code is cleaner, but seems only to be the sign-up part? I wonder if you have some extra scripts you run when fulfillment day comes.


Would love a Ruby version of this.


Definitely. A rails version specifically would be helpful for me.


Agreed.



This looks nice...but this focuses on single purchases. I need recurring, subscription stuff.


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/mo...

Just change "Charge" to "Customer" and give it a plan ID instead of a price.


But 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.


That'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.


Could not be timed more perfectly. Was just about to start a subscription service for the API on http://sharedcount.com

Thanks for open sourcing this!


This is great. I am a Flask fan and was looking to build something like this. Will definitely try it out.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: