#suhail_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/1392869961739014246
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there, can you share the payment method or event ID?
You are making a detach request
Since this is using our Node SDK, you must have somewhere that you call stripe.paymentMethods.detach() eg
thats the whole point we are not doing this and still getting the event just few seconds after we get payment method.attach webook
You can find this request yourself using the request.id exposed in the event data, too: https://docs.stripe.com/api/events/object?lang=node#event_object-request-id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
we are not doing this
but you are, you can see that request log of your API call, right?
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
i tried adding the customer manually from the dashboard to a customer still same issue
haven't used our code base
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?
first, please share that customer id
second, click to expand that remove event
cus_SedsOQZGvCw7Hv
There should be a link to the corresponding detached webhook event
What does it show you when you expand that?
yep the problem is that here i have not used any of our code and still i am getting a detach event
trying to help you figure that out
ya ya i know what you are trying to say
that we are getting a detach event that means we have called that
correct ?
right
my guess is that you have a webhook handler somewhere for attach events thats automatically calling detach every time
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?
You made the request to do that
So in that customer view, scroll down to "logs" and "events"
aah okay thanks for your time
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