#Khalil - Orders API + Node
1 messages · Page 1 of 1 (latest)
Hello, good question, I am checking in to this. We are less familiar with betas on this server so I may have to refer you to another team if I can't find something on this in the next couple minutes
sounds good - thanks for checking pompey
It looks like 9.0.0 is the version where stripe-node switched from using our legacy Orders API to the new Orders API https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#900---2022-05-09
So you will need to upgrade to at least a 9.x.x version to use Stripe's library for this
sounds good! this is helpful thanks @dusky mason
Of course, just let us know if you have any more questions
Quick follow up, I am assuming versions are backward compatible?
Largely yes though the major version change implies that some things aren't backwards compatible. The ⚠️ sign in our changelog is for the breaking changes. So if you are coming from an 8.x.x version, the changes to look out for are how closed connection errors are handled and that you can't access the legacy Orders API anymore
Where can I find the changelog?
Linked to it earlier but it has other notes too https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#900---2022-05-09
You can get to it as CHANGELOG.md from our GitHub page
It seems like the most recent version is requiring me to use 2022-08-01 API version, most the documentation is based on 2020-08-27
I am assuming that's fine?
You can still use 2020-08-27 but our typescript functionality at the moment is geared towards 2022-08-01. For betas like this we actually typically reccommend using // @ts-ignore if you are using a beta feature that uses classes beyond the library's type definitions. https://github.com/stripe/stripe-node#usage-with-typescript