Neat. I built something similar, it's a Flask blueprint for doing stripe charges/subscriptions:<p><a href="https://bitbucket.org/lost_theory/flask-stripe-blueprint" rel="nofollow">https://bitbucket.org/lost_theory/flask-stripe-blueprint</a><p>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 ...%}.<p>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.
Could not be timed more perfectly. Was just about to start a subscription service for the API on <a href="http://sharedcount.com" rel="nofollow">http://sharedcount.com</a><p>Thanks for open sourcing this!