#midraif_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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.
๐ happy to help
have you followed these steps https://docs.stripe.com/webhooks#test-webhook ?
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
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)
yeah I know nothing about this either sorry, I've never used Sandboxes or this version of stripe-cli
is Sandboxes too early for us to be using then? It has been great for everything until we started on webhooks
not sure, I haven't been involved in Sandboxes at all to be honest
is there someone you can connect me with that knows about sandboxes or the preview plugin?
I don't think there's such a person on my team right now but I'll ask
ok thank you
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)
Ok thanks, appreciate it
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
sure
stripe preview means that you are using sandboxes instead of the default stripe CLI which links to test mode/live mode
no problem I appreciate the help
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
what makes an event v1 or v2?
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
I will test it now without the v2
in the API reference docs https://docs.stripe.com/api/ you can see if a request is /v1 or /v2
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for example create a customer is POST /v1/customers which generate a v1 event
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
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
ok understood, appreciate you going down that rabbit hole, big help ๐
I agree and I will forward your feedback that I share with our internal team
if you're good I will close the thread again now
sure ty
would you mind just sharing the link from this screenshot? like where did you get this snippet
It is in my stripe dashboard so I don't know if a link would help
In the workbench
in a sandbox
oh ok it's in workbench!