#suhail_webhooks

1 messages ¡ Page 1 of 1 (latest)

remote frigateBOT
#

👋 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/1392869961739014246

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

uncut kindle
pulsar cliff
#

hey there, can you share the payment method or event ID?

uncut kindle
#

Sure

#

"id": "evt_1RjLBUL8yY0HPNskazvqFzrs",

#

pm_1RjKdTL8yY0HPNskL8bJd2UN

pulsar cliff
#

You are making a detach request

#

Since this is using our Node SDK, you must have somewhere that you call stripe.paymentMethods.detach() eg

uncut kindle
#

thats the whole point we are not doing this and still getting the event just few seconds after we get payment method.attach webook

pulsar cliff
#

we are not doing this
but you are, you can see that request log of your API call, right?

uncut kindle
#

let me check but i am 100% sure that we are not doing as this was working fine since 2 months and we have not touched that part of code

uncut kindle
#

i tried adding the customer manually from the dashboard to a customer still same issue

#

haven't used our code base

pulsar cliff
#

i tried adding the customer manually from the dashboard to a customer still same issue
What do you mean, can you share the example/test?

uncut kindle
#

sure

pulsar cliff
#

first, please share that customer id

uncut kindle
#

okay

#

sure

pulsar cliff
#

second, click to expand that remove event

uncut kindle
#

cus_SedsOQZGvCw7Hv

pulsar cliff
#

There should be a link to the corresponding detached webhook event

#

What does it show you when you expand that?

uncut kindle
#

yep the problem is that here i have not used any of our code and still i am getting a detach event

pulsar cliff
#

trying to help you figure that out

uncut kindle
#

ya ya i know what you are trying to say

#

that we are getting a detach event that means we have called that

#

correct ?

pulsar cliff
#

right

#

my guess is that you have a webhook handler somewhere for attach events thats automatically calling detach every time

uncut kindle
#

ya actually this whole thing was working smooth since 2-3 months just today this issue got raised

#

okay is there any way i can get to know that what was reason of detachment?

pulsar cliff
#

You made the request to do that

#

So in that customer view, scroll down to "logs" and "events"

uncut kindle
#

aah okay thanks for your time

pulsar cliff
#

you can see the request there immediately, but looking at the most recent "detach" event, click through to that event view

#

You should see something like "source: API" near the top

#

which is also a link to the request you made to detach this

#

so i want you to check for two things in your source code:
1/ search for any instance of "detach" to find calls to the detach() method
2/ search for "attached" to find any webhook event handlers for payment_method.attached events

#

If my intuition is correct, i suspect you'll find both of these near one another