#Kristoffer
1 messages ยท Page 1 of 1 (latest)
When you say the event is triggered twice do you see the same event id? evt_xxx. Are do you have multiple webhook endpoints?
I've only created one listener for my local project. When I say event, I guess it might be wrong, but it will enter the Events.PaymentIntentSucceeded twice at the same time
This transfer is only triggered within the webhook
How do you trigger payment_intent.succeed btw?
Look here: https://dashboard.stripe.com/test/events
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I create a payment intent -> the payment is completed by the end user -> the webhook is called and it checks for the succeeded state
Thats the last payment I've completed in test, the flow works great, but the transfer on top is the 200 OK from the first picture, the 2nd transfer attempt is the 400
The exception:
Just som console logging, as you can see, everything is triggered twice:
Can you paste here the Payment Intent Id? pi_xxx
pi_3Lsi6bGdt528t7cj02J0INbH
Thats for the latest test I just did, I changed the console logging..
Heres the console logging from that Payment Intent.
I see you have 2 Stripe CLI forwarding the events
can you check if you open and forwards from multiple terminal windows?
I only have one terminal open towards Stripe CLI, I recently upgraded it from 1.12.3 -> 1.12.4, maybe the previous one is stuck in some way?
I can only see one on the Local listeners though:
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I see 2 here
Hm.. Thats weird.. Is there a way to remove these webhooks all together, so that I can re-add it?
Force close all terminals or restart your local machine ๐
Perfect, I'll give the good ol' reboot a shot and come back to you in a bit! Thanks ๐
Same problem after a reboot
Let's give me a new triggered event
Want me to perform a new test, or do you want the Id of one of those event?
evt_3LsigKGdt528t7cj15QymAK2 is a transfer.created
New test
There
Can I have the new PaymentIntent Id? pi_xxx
pi_3LsiisGdt528t7cj0RDqQ9Z7
Still see 2 CLI instances here: https://dashboard.stripe.com/test/events/evt_3LsiisGdt528t7cj02jZkwgf
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah, I noticed, but uhm.. how/why? ๐คทโโ๏ธ
I do have the Stripe CLI 1.12.3 in a different folder, I just assumed that was ok
Is that Window or Mac/Linux and does it have latest Stripe CLI version?
And theres only one listener in Developer -> Webhooks
Windows, and afaik 1.12.4 is the lastest, which is the one I've used
And you are absolutely sure only open 1 instance?
For the CLI? Yes, I do have 2nd terminal open that runs docker compose though?
From the CLI:
I noticed that your account is ... connected to itself. Is it something you acknowledged?
I only received an invitation to this one, I do have a 2nd account with the same name. I haven't set up anything for the one I'm currently using
Hi! I'm taking over this thread.
Hello ๐
If I understand correctly you are receiving your webhook event twice, and you are not sure why?
I think this is because your account has some strange setting back from 2016, and I am not sure why it's setup this way. Is this your own account or of a client you are working for?
Of a client, I received the invitation to it tuesday and joined it on wednesday I believe. So I haven't touched any settings other than upgrading the API version
And the CLI listener of course
One thing you can try is creating a Stripe test account, then swap its secret_key into your code in local and see if you have the same issue
Sure I can give it a go, I have one already. Give me a few and I'll get back to you
It worked as expected on my own test account:
Only triggered once, and no exception
I see, any suggestions as to how I should fix where? ๐
1 moment
Um I would reaching out to the client asking for clarification, if they acknowledge their account is connected to itself, and what was their previous developer's solution, and is it ok to dis-connect this account from itself or not. To be honest it's quite complicated setup
Ah ok, I'll check with the client if he knows who did what when, and if he know why it's like that..
And also open an email Support transaction with Stripe so we can follow up on more depth analysis
Will do, thanks so much for your time. He had no idea and promptly said "We'll just make a new account", so hopefully that'll do the trick! ๐
Okie! good luck!