@stripe how does one know when an API update affects webhook message format? We are writing a payment provider for an eCommerce system which we recently upgraded for the SCA changes, but we are now getting feedback from users that the webhooks API is already outdated.
-
Show this thread
-
I know you can target a build against your accounts current version, but how do we maintain a provider that will keep working for new customers who may be on newer API versions?
2 replies 0 retweets 0 likesShow this thread -
Replying to @mattbrailsford
Webhook events are delivered in the API version of the account where the event happened. You should generally create a webhook endpoint and define the API version of events it receives—this way your server will always receive events in that version: https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version …
1 reply 0 retweets 0 likes -
Replying to @stripe
Sure, but the problem is I need to distribute with my product a provider to connect with Stripe and depending on when that person signs up will determine what version of the API is available to them.
1 reply 0 retweets 0 likes -
Replying to @mattbrailsford @stripe
If that's the case it suggests that we would be required to create version specific providers which isn't really sustainable given the release rate of API versions.
1 reply 0 retweets 0 likes -
Replying to @mattbrailsford @stripe
Also, even if we did do this, it would also potentially have problems for people upgrading our product as future versions would require them to upgrade their Stripe API version whether they are able to or not.
1 reply 0 retweets 0 likes -
Replying to @mattbrailsford
To clarify, one provider, whose code can understand a certain API version, registers an endpoint for that version for each account—it always gets events in that version regardless of the account. It might be best to write in so we can provide more detail! https://support.stripe.com/contact
1 reply 0 retweets 0 likes -
Replying to @stripe
Ahh, ok, we currently get the implementors to register the webhooks manually which means they only have access to the latest API versions. I guess this would mean the provider needs to do the webhook registering?
1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.