#aquitaine_webhooks

1 messages ยท Page 1 of 1 (latest)

mystic joltBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1338566648021389453

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hard socket
#

Hi ๐Ÿ‘‹

The webhook menu will only allow you to specify the default API version for the account (Sandbox) or the latest API version.

worldly flume
#

Can we change the default API version for the account to the older version, then?

hard socket
#

No

#

If that is the default version of your current Stripe Account, you can create a Sandbox that inherits all of your current settings

worldly flume
#

I created a sandbox from our main platform account that is on the 08-2020 API. I then created a connected platform (which we also need for webhooks) off of that new sandbox platform. The platform account is correctly using the 08-2020 API as a default but the connected account is not.

#

In order for sandboxes to have utility for our development team, each developer needs their own sandbox to run tests, which means creating a connected sandbox account for each developer and assigning the webhook to that account. Otherwise we are right back where we started with each individual test suite triggering all webhooks for all developers. I see the inheritance behavior you're descibing on the platform sandbox but not on the connected account created from that platform.

hard socket
#

Sorry but that organization doesn't make sense to me. When you created the Connected Account, what API version was assigned to that account?

worldly flume
#

2025-01-27.acacia

#

connected acct ID: acct_1QpY2fLNpVqx4bcQ vs. platform acct acct_1QmjxiGh0GF144h5 (which is on the 2020-08 API)

hard socket
#

Okay so if you try to generate a Sandbox for that connected account, it can only have that API version, since it's both the default for the Account and the latest.

worldly flume
#

Did we miss a step when creating the account to specify the earlier API? We just created the platform sandbox and then connected an account to it

#

I guess the actual question here is just: is it possible to create both a platform and a connected account sandbox that are both on an older API version, and if so, how

hard socket
#

to create both a platform and a connected account sandbox that are both on an older API version, and if so, how

I don't think so. When you create a new Account (Connect or Direct), the default API version will be set to whatever is the latest version.

worldly flume
#

OK. So in our use case, each developer would therefore need their own platform account and set up webhooks on that, since that is the only way we have any control over the API version?

mystic joltBOT
hard socket
#

I'm not sure I follow all the ways these accounts are related. If you want developers to have isolated environments that mimic your platform account, you will need to create Sandboxes for them from your main account with that API vesion

worldly flume
#

We were hoping (just to keep the number of platform accounts down) to have a single, master 'developer sandbox platform account' and then each developer would create their own connected platform account (which is how our app works, no transactions ever happen on the platform account) and add webhooks just for 'their' connected account. It's not the end of the world to have to make one sandbox platform per developer, it's just more cruft

#

but it is true that every time we talk to a Stripe rep about how our business works, they respond as though it never occured to them that somebody would use Stripe like we do ๐Ÿ™‚

#

(which works super great in production, btw)

neon cloak
#

Hello! I'm taking over and catching up...

#

You can't do it via the Dashboard, though.

#

Will that combined with specifying an explicit API version in your code be sufficient for your needs?

worldly flume
#

It should be, checking that doc link

#

Can we create a webhook that way from the console on the workbench? Or only via the API

neon cloak
#

You should be able to do it from the console there, I think, yeah.

#

Yeah, stripe webhook_endpoints create is supported in the Stripe Shell in Workbench.

worldly flume
#

We will play around with that! Thank you!