#Benoît
1 messages · Page 1 of 1 (latest)
Hi 🙂
Hello
Checking in to this, I think this may have been introduced in a later verison of the stripe-dotnet library but am double checking
Ok thank you. Would have been very useful
Yep looks like this was added in a later version. Unfortunately it is a couple major versions ahead of your current library so you may have to make some changes to upgrade https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#3390---2019-12-02
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/CHANGELOG.md at master · stripe/stripe-dotnet
Ok thank you. Can i try a new API version in developpement mode before changing it in production mode ?
Yep yep, you can just run the new code with your test keys and it should work
Your account's API version just determines the default version if you don't specify one. The .NET library specifies its specific version when making requests so it should just work
If you are using webhooks you will probably want to create a new test endpoint that uses the same API version as your newer .NET library
I use Node.js, not .NET, does it change something ?
The Stripe Dashboard says i can't use another version in test mode, and i have to upgrade it in production mode
Oh sorry, I thought IInvoiceListOptions was a .NET library object. I will check in to the node version of this library
You don't need to change anything about the API version on your account at the moment. Actually when using node you may not have to change your API version at all here.
Ok, great 🙂
To be clear, that page is about the default version for your account. You can still tell the API library to use other versions than those two when making your API calls
https://stripe.com/docs/api/versioning
Also for webhook endpoints, the dashboard won't let you specify an arbitrary API version but you can create endpoints with the API that use any API version
https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.