Ask HN: Why is Stripe API documentation lacking so badly?
1–10 of 13 posts
Re: Ask HN: Why is Stripe API documentation lacking so badly?
#2I've never had a problem finding what I need from it
Re: Ask HN: Why is Stripe API documentation lacking so badly?
#3Re: Ask HN: Why is Stripe API documentation lacking so badly?
#4The team are very responsive, so as zapperdapper mentioned, I'm sure they'd welcome a bug report with details of what you're having trouble with.
Re: Ask HN: Why is Stripe API documentation lacking so badly?
#5Re: Ask HN: Why is Stripe API documentation lacking so badly?
#6I haven't found it to be lacking for any of my use cases.
Re: Ask HN: Why is Stripe API documentation lacking so badly?
#71. Internalizing core objects, like the Customer, Card, Tokens, and Source. And Plans / Subscriptions. Card/Source can feel ambiguous, since the API lookups are similar.
2. Order for creating / pulling up some objects. Customer's can attach a source upon creation, but can also attach it later. But you can't just look up all cards - you retrieve a card by looking up the customer first.
This helps later on if your user wants to update their billing info. Think about it: You pull up the customer first. Then a customer has cards they can delete, update, or add.
Plans must be created before subscriptions. That's another huge favor. Because on your front end, you can have the user switch between plans and have a consistent selection site-wide. Rather than just declaring an arbitrary price.
3. Understanding the difference between stripe.createSource (a reusable billing object) and stripe.createToken (a temporary billing object) [1]
4. Getting effective coverage in billing systems. Requires a ton of mocks. In order to simulate the responses to create the mocks, you have to play with the test API to get the desired outputs. The docs don't give you that.
In fact, stripe-mock [2] doesn't give you all the possible scenarios. So there's going to be a lot of time spent "bullet proofing" a subscription system. Especially if it's self-service.
I'd estimate it took about 1.5 months to get it fully working when I did it at a startup. The second time around, it's taking more time since I want to be able reusable enough to use on other websites / clients. Maybe 2-2.5 months.
[1] https://stripe.com/docs/sources/cards#create-source [2] https://github.com/stripe/stripe-mock
Re: Ask HN: Why is Stripe API documentation lacking so badly?
#8Re: Ask HN: Why is Stripe API documentation lacking so badly?
#9Stripe API documentation is the best i've ever seen, I really don't see what could be improved
Do you have any exemples in mind ?