#Kristoffer

1 messages ยท Page 1 of 1 (latest)

reef houndBOT
robust lodge
#

When you say the event is triggered twice do you see the same event id? evt_xxx. Are do you have multiple webhook endpoints?

hidden remnant
#

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

robust lodge
#

How do you trigger payment_intent.succeed btw?

hidden remnant
#

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:

robust lodge
#

Can you paste here the Payment Intent Id? pi_xxx

hidden remnant
#

pi_3Lsi6bGdt528t7cj02J0INbH

#

Thats for the latest test I just did, I changed the console logging..

#

Heres the console logging from that Payment Intent.

robust lodge
#

I see you have 2 Stripe CLI forwarding the events

#

can you check if you open and forwards from multiple terminal windows?

hidden remnant
#

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:

robust lodge
#

I see 2 here

hidden remnant
#

Hm.. Thats weird.. Is there a way to remove these webhooks all together, so that I can re-add it?

robust lodge
#

Force close all terminals or restart your local machine ๐Ÿ™‚

hidden remnant
#

Perfect, I'll give the good ol' reboot a shot and come back to you in a bit! Thanks ๐Ÿ™‚

#

Same problem after a reboot

robust lodge
#

Let's give me a new triggered event

hidden remnant
#

Want me to perform a new test, or do you want the Id of one of those event?
evt_3LsigKGdt528t7cj15QymAK2 is a transfer.created

robust lodge
#

New test

hidden remnant
#

There

robust lodge
#

Can I have the new PaymentIntent Id? pi_xxx

hidden remnant
#

pi_3LsiisGdt528t7cj0RDqQ9Z7

robust lodge
hidden remnant
#

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

robust lodge
#

Is that Window or Mac/Linux and does it have latest Stripe CLI version?

hidden remnant
#

And theres only one listener in Developer -> Webhooks

#

Windows, and afaik 1.12.4 is the lastest, which is the one I've used

robust lodge
#

And you are absolutely sure only open 1 instance?

hidden remnant
#

For the CLI? Yes, I do have 2nd terminal open that runs docker compose though?

#

From the CLI:

robust lodge
#

I noticed that your account is ... connected to itself. Is it something you acknowledged?

hidden remnant
#

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

cosmic flare
#

Hi! I'm taking over this thread.

hidden remnant
#

Hello ๐Ÿ™‚

cosmic flare
#

If I understand correctly you are receiving your webhook event twice, and you are not sure why?

hidden remnant
#

Exactly

#

Brb, 1min.

#

Back

robust lodge
#

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?

hidden remnant
#

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

robust lodge
#

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

hidden remnant
#

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

robust lodge
#

Yep

#

So it's definitely the client account setting

hidden remnant
#

I see, any suggestions as to how I should fix where? ๐Ÿ™‚

robust lodge
#

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

hidden remnant
#

Ah ok, I'll check with the client if he knows who did what when, and if he know why it's like that..

robust lodge
#

And also open an email Support transaction with Stripe so we can follow up on more depth analysis

hidden remnant
#

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! ๐Ÿ™‚

robust lodge
#

Okie! good luck!