News for hackers. Stuff that matters.

user3487

Django for backend React JS for frontend work
Re:Ask HN: How do I integrate subscription billing to my SaaS on Tuesday December 16, 2014 @02:57PM (#8759021)
Thank you for the answer!

Mr. @davismwfl gave me some really good directions on my problem in his answers, do you agree on that way? Is there a reason you suggest managing the subscriptions directly in the app instead of in Stripe? And does it count as "my app" if I manage it in a separate service, as @davismwfl solution?

Re:Ask HN: How do I integrate subscription billing to my SaaS on Tuesday December 16, 2014 @01:31PM (#8758481)
This is amazing, thank you again! It seems that the way you have decided to solve this is both scalable and modular, so it's very likely that I will adopt it. I will talk with my business people about the best solution for us on handling tier upgrades, notification etc. Right now you have assured me I can let the subscription integration wait, so I'll continue focusing on the actual product and implement the subscription later.
Re:Ask HN: How do I integrate subscription billing to my SaaS on Tuesday December 16, 2014 @12:25PM (#8758088)
Thank you, that is great information to have in mind! As I wrote in another answer, the subscription will most likely end up as a separate service so it wouldn't be a problem for customers to access the application if I get trouble with Stripe, at least. I would imagine that having a third party gateway would add to the expenses. I am not really too interested in that in the beginning.

Could you educate me when a chargeback would occur using Stripe?

Re:Ask HN: How do I integrate subscription billing to my SaaS on Tuesday December 16, 2014 @12:18PM (#8758041)
Thank you for the magnificent answer. It seems like a good idea to create a separate service to handle the registration. My app is backed by a REST API (I know, I am so trendy), so it would just be to call that one and a call to Stripe's API and be done.

One thing I realized now, reading your answer, is that the customer's plans should be changed depending by the user's usage (think storage space). Should I be running a cron job once or twice a day to check the usage, compare it to their subscription plan and update it at Stripe? Of course notify them by email, and maybe give them a day to re-do and not give them unexpected charges.

Re:Ask HN: How do I integrate subscription billing to my SaaS on Tuesday December 16, 2014 @11:55AM (#8757930)
Thank you. I'm planning to use Stripe for payment service. The thing I am looking for is the practical implementation of adding a user to my application, and creating a subscription account at the same time without mixing Stripe code into my product. Do you have any experience with that to share?

Ask HN: How do I integrate subscription billing to my SaaS

Hi,I'm building a web and mobile based SaaS which has a subscription tier. It would be preferable to keep the billing outside the application (API) so that the product can stand on it's own, i.e. separation of concern. How is this managed the best? Is it even possible too keep them as separated as I wish for?I am thinking about just adding a "Stripe customer id" field to the account model, but...

( Read More... | 14 comments | 5 points | on HN )
Re:Ask HN: How do I write good documentation? on Monday October 06, 2014 @03:59AM (#8414757)
Start off by reading documentation, preferably good. It's not easy, but just as everything else you will get better with practice so you'll have to just write. You can always go back and revise just like your code!
Usually I decide to learn a new language or framework because I've researched that it will be the best tool for the job for the project I'm currently working on. In my opinion the most useful way to go ahead is to start by developing stripped down, simple versions of the selected components of the project. Then I build, read documentation / code and refactor until the problem is solved in a good way. By then I usually have a good grasp on how to use the language properly and can go on.
Re:Ask HN: How do I find a remote job for my wife? on Sunday August 17, 2014 @07:53AM (#8189215)
She could consult for business' looking to expand to the US and need some guidance
Re:Ask HN: 16-hour work week jobs? on Sunday July 06, 2014 @02:45PM (#7995273)
I'm tired, but isn't 4/5 the same as 80%? How is that a better arrangement other than working less?
You're doing a good thing for this world. Never forget that. You are important!
Re:Quote from Linus Torvalds on Free Software on Tuesday February 04, 2014 @07:47AM (#7177038)
Because it's so good
Re:Would you like a Django-like framework for PHP? on Saturday January 25, 2014 @08:40AM (#7120730)
You're right, I can see that. Would it not be a good idea to create a higher level framework based on one of the existing ones? With a mature and massively used core you could focus more on making your framework user [developer] friendly in the way you think Django gets it right.

I am just thinking out loud. It's a good idea, but I am afraid it could easily be too much work to reinvent a wheel instead of building the car around a well tested existing.

Re:Would you like a Django-like framework for PHP? on Saturday January 25, 2014 @07:53AM (#7120652)
That's cool. I still wonder what will be the main difference between "DjangoPHP" and the other frameworks. Don't they support most of the same features that Django provides?
Re:Would you like a Django-like framework for PHP? on Saturday January 25, 2014 @07:38AM (#7120622)
I am a huge fan of Django, so of course, but are there any reasons for using your young untested framework instead of an existing like Laravel or Symfony?
Re:Ask HN: Is this common among python devs? on Monday August 12, 2013 @08:44AM (#6198856)
Yes, that is a common trade of a Python developer. It depends only of preferred programming language. Damn troll ruining Hacker News!
I name them what they are. A piece of pizza is a piece of pizza, not a bowl of soup.
Re:Godit - A very religious text editor written in Go on Thursday March 28, 2013 @05:34AM (#5453943)
Fork it!