![]() ![]() This switches the version used by API calls that don’t have the Stripe-Version header and also switches the version used to render objects sent to your webhooks. When you’re confident that your code can handle the latest API version, click the Upgrade version button in your Dashboard. Trigger the event in test mode and validate that your code works for the new structure.Change the version of a test webhook endpoint to the version you want to test.Update your webhook code to handle both the old and new version of each object.Check for breaking changes to see which objects will be structured differently.To safely upgrade your webhooks, Stripe recommends that you: Learn how to manage versioning in our server-side libraries.įor webhooks, you can override the version of a single test webhook endpoint in your Dashboard. To test a newer version for API calls, set the Stripe-Version header (in live or test mode). ![]() When performing an API upgrade, make sure that you specify the API version that you’re integrating against in your code instead of relying on your account’s default API version. To see what version you’re running and upgrade to the latest one, visit your Dashboard. See the API changelog for details about how your default API version will impact these operations.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |