#schliemannw_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/1359955540389794064
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! It wasn't removed, no - are you sure you're connected to the Sandbox, and not the main account?
I think so, otherwise I wouldn't be able to trigger events using the cli, right?
That's true.
Also, I am able to retrieve events created
Can you share the listening command you're using?
stripe listen --forward-to localhost:4000/stripe/webhooks
Then if I do stripe trigger payment_intent.succeeded I get all the events
So what are you not getting then?
But if I use the dev version of my project, create a customer, do a purchase, nothing comes through
No, triggered events through the cli goes through fine
The events created in using the API in dev don't go through
Ok, there are two possibilites.
- Is this related to connect?
- Can you please share:
a) a Payment Intent ID that you didn't receive an event for when you expected; and
b) an Event ID that you reecived when you used the CLI to generate it?
Here's an example:
evt_1RCP5bPZgrKV86Efa4U4lZZ6
this creates a customer, but I don't get that event in my webhook endpoint
but I can retrieve it using stripe event retrieve
You're receiving none of the events?
Can you add http:// to the URL when you do stripe listen? I.e.: stripe listen --forward-to http://localhost:4000/stripe/webhooks
Does that make a difference?
Can you also please run stripe --version for me?
That shouldn't matter.
Can you share an Event ID or some other ID from something that should have come through but didn't?
I tried both actually, didn't make any difference
You do get an event forwarded if you use Stripe CLI to generate something, right?
Can you share me one of those Event IDs please?
evt_1RCP0mPZgrKV86EfyyaBbYEL
That was not sent to any webhook endpoint.
Hello ๐ have you rerun stripe login and choose the sandbox account on the dashboard page that it takes you to?
Sorry, that answered the previous question
This for the cli: evt_3RCQD8B0gucvOvya0Ghs3ZTu
Yeah, I did it a couple of times today
Let me try it again
You're good. It's an account issue.
evt_3RCQD8B0gucvOvya0Ghs3ZTu belongs to acct_1JZsa6B0gucvOvya
evt_1RCP0mPZgrKV86EfyyaBbYEL belongs to acct_1Q8QBDPZgrKV86Ef
Stripe-CLI is connected to the former, but not the latter.
Try doing stripe login --interactive and make sure you provide the right API key to specify the account you're trying to work on.
Ooohhh no. Now it worked!
When you mentioned login to the sandbox I realized I never looked at it. I assumed that loging into my main account without --live would automatically log me into sandbox
Thank you so much
BOOOOOM Awesome. ๐ You're very welcome! Have a good one! ๐
Glad it is working now!
Of course, have a nice rest of your day!