#marish25
1 messages · Page 1 of 1 (latest)
Hi 👋 when making requests to our API the default API version of your Stripe account will be used unless otherwise overridden.
Due to the nature of strongly typed languages like .net, our libraries for those languages are pinned to specific API versions so the Stripe data can be cast into objects without issue. So it is expected for the .net library you're using to be pinned to a specific API version and always make requests using that version.
But our angular solution is hitting to default version , dot net is hitting to latest version
That sounds expected. What version of our dotnet SDK are you using?
<PackageReference Include="Stripe.net" Version="41.18.0" />
and our angular package is "@stripe/stripe-js": "^1.54.0",
That all seems expected, that is a newer version of our dotnet library so it is expected for that SDK to be pinned to a newer API version. Stripe JS though is not strongly typed, so it is not pinned to a specific API version and will use the default for your account unless overridden. What is your desired outcome?
how to set default api verion in stripe account
In your Stripe dashboard, the API version section of this page:
https://dashboard.stripe.com/test/developers
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I need both the solutions to hit the same version i.e latest version not default version
Gotcha, then you'll want to initialize stripe.js with a different API version, so it matches the version being used by the dotnet package being leveraged:
https://stripe.com/docs/js/initializing#init_stripe_js-options-apiVersion