#midraif_webhooks

1 messages ยท Page 1 of 1 (latest)

scenic sinewBOT
#

๐Ÿ‘‹ 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/1263432200502902889

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

dense sedge
#

๐Ÿ‘‹ happy to help

arctic prairie
#

let me check

#

I used that before we were on a sandbox but the dashboard in my sandbox has different instructions which is why I am using the preview plugin

scenic sinewBOT
arctic prairie
#

our webhooks worked before but this is the first time trying this since we started using sandboxes

#

I couldn't find any docs on the preview plugin (guessing because it is beta)

azure musk
#

yeah I know nothing about this either sorry, I've never used Sandboxes or this version of stripe-cli

arctic prairie
#

is Sandboxes too early for us to be using then? It has been great for everything until we started on webhooks

azure musk
#

not sure, I haven't been involved in Sandboxes at all to be honest

arctic prairie
#

is there someone you can connect me with that knows about sandboxes or the preview plugin?

azure musk
#

I don't think there's such a person on my team right now but I'll ask

arctic prairie
#

ok thank you

azure musk
#

ok nobody on my team has touched Sandboxes really

#

I'd suggest opening a support ticket at https://support.stripe.com/?contact=true or contacting anyone you might have spoken to at Stripe about getting acess to this(sorry for being vague, I just genuinely haven't followed at all what/where Sandboxes are in the beta->fully available train)

arctic prairie
#

Ok thanks, appreciate it

scenic sinewBOT
dense sedge
#

hey @arctic prairie sorry we were still looking into this

#

and we finally found the issue

#

so basically the way the Stripe CLI preview plugin work is that it differentiate the current (ie v1) requests/events from the next (ie v2) requests and events

#

so explaining the CLI command you sent I would have to break it down into smaller pieces

arctic prairie
#

sure

dense sedge
#

stripe preview means that you are using sandboxes instead of the default stripe CLI which links to test mode/live mode

arctic prairie
dense sedge
#

stripe preview listen means that you want to listen to all v1 and v2 events

#

stripe preview listen --forward-to <url> listen to all events but only forward v1 events to the url

#

stripe preview listen --forward-to <url1> --v2.forward-to <url2> listen to all events but forward v1 events to url1 and v2 events to url2

arctic prairie
#

what makes an event v1 or v2?

dense sedge
#

stripe preview listen --v2.forward-to <url> listen to all events but only forward v2 events to the url

#

all requests under api/v1 would generate v1 events

arctic prairie
#

I will test it now without the v2

dense sedge
#

in the API reference docs https://docs.stripe.com/api/ you can see if a request is /v1 or /v2

#

for example create a customer is POST /v1/customers which generate a v1 event

arctic prairie
#

aha that is now working thanks so much

#

not sure where to give the feedback but this needs to be changed as I had no idea whether to use v2 or not

dense sedge
#

sure thing! just fyi, we don't normally know much about private betas on this channel! I was just interested in your use case and had to go down the rabbit hole to dig and test and find some answers for you. If you happen to have any other follow up questions about v2 I encourage you to contact https://support.stripe.com/?contact=true

arctic prairie
#

ok understood, appreciate you going down that rabbit hole, big help ๐Ÿ™‚

dense sedge
#

if you're good I will close the thread again now

arctic prairie
#

sure ty

dense sedge
arctic prairie
#

It is in my stripe dashboard so I don't know if a link would help

#

In the workbench

#

in a sandbox

dense sedge
#

oh ok it's in workbench!