by AlchemistCamp · 6y ago · 0 comments
As it is, every guide I see assumes the use of one of their few officially supported languages.
It doesn't have to be that way. For a web API, the strings sent back and forth in HTTP requests and responses can be generated by any server-side language.
Edit: Here is an example, the first guide linked from that page: https://stripe.com/docs/payments/accept-a-payment?integratio...
As you'll notice there's a toggle for language in Step 1 "Set up Stripe". The options are: Ruby Python PHP Java Node Go .NET. Note that CURL is not an option. The entire guide presupposes you're using one of 6 languages Stripe has blessed.
This has been the case for every guide on every similar Stripe product announcement I've seen shared here over the past year and a half.
You've got to be kidding, right?
That example you cited is about installing dependencies for the languages. You don't need to install an additional dependency to run a curl command. I've looked over the documentation you've cited in other posts and the only times it seems to omit curl requests is when you aren't required to make a request for the checkout flow.
While asking for specific documentation and language support for elixir is a reasonable request, it seems a bit unfair to claim their documentation doesn't provide enough information to roll your own interface.
Here's an example of something you'll need to know for subscriptions or anything else involving webhooks: https://stripe.com/docs/webhooks/signatures#verify-manually
How many clicks is it going to take you from the subscriptions page of the docs to get there? You know it exists, which is already a big leg up, but I suspect it will take a while.
To be clear, my site is integrated with Stripe. A lot of Elixir users in my audience have had a rough go of it, though.
Hey, I'm an engineer on the Docs Product team at Stripe. Thanks for the feedback about Elixir; if you have other ideas about how we can improve the docs, I'd love to hear them! Feel free to email me at nkohari@stripe.com.
Granted, your second link doesn't include curl examples.
Here's the link again if you'd like to check for yourself: https://stripe.com/docs/payments/accept-a-payment?integratio...
And Elixir doesn't handle that well? Or it's hard to translate examples written in other languages to Elixir? (I don't use Elixir so I'm not grasping the problem.)
> Or it's hard to translate examples written in other languages to Elixir?
Well, the first line, "gem install stripe" is a bit tough to translate into a language that doesn't have an official Stripe library :)
The issue is that the official library does things behind the scenes that the guides don't mention (such as setting up headers, tokens for webhooks, etc).
And yes, only the six most popular webdev languages. Monsters.
This is surprising, I've always found their docs to be world class. Their API reference site is especially nice. What have you found lacking other than the Elixir library?