#Merino
1 messages ยท Page 1 of 1 (latest)
Tell me if there's something missing
Hi ๐
Or if it's better for us to go on call
Can you share an event ID (evt_XXXXX) so I can review it?
Yeah
We don't offer calls through Discord
evt_1LnSXyBoIyKi4clHZsmrPVIc
Oh I see, no problem
?
Is that the ID you requested?
Or you need the webhook id?
Yes that will work
Ok
I'm not seeing any response to this request.
That isn't necessary. Plenty of integrations send an empty BODY response. But I am not seeing a response of any kind for this request.
That's weird
I copied the Stripe example at the dashboard about how to handle Webhooks and edited it for a while
It had a response.send() at the very end
I changed it to res.status(200)
Should my server respond to every webhook that comes? Or this res.send at the end is enough?
Okay so you send the status. But do you actually send the response?
As long as code execution continues to the final res.send() it should be fine to have that in one spot
There's nothing going to error handlers in my backend, I'll change res.status to res.send() then
I guess we found the problem
lol
I'll test a little bit more
๐
Great, I'm glad. Feel free to come back and ask more questions if you get stumped.
I tested with another client at another computer and both worked it seems status res.status was causing some problems. Thanks Snufkin for all the help
I have one last question
Just for the sake of testing I used the customer that my co-worker normally uses.
I had never logged with his credentials, however stripe already recognized the input that he used on his computer
Is that a common behavior or is it just 'cuz we are at test mode ?
By the way, sorry if my english sucks, it's not my first language and it's been a while since I've had to type anything hahah
When you say
stripe already recognized the input that he used on his computer
Do you mean logging in to the Dashboard?
I mean the checkout page
I normally use this test account
But when I used this one
It alredy knew the card, zip-code, etc
And I had never logged into this user
If the Customer has an associated Payment Method with a full billing address, name, and email it Checkout will surface the payment method
The billing_details.address must include a Country code
Sure thing, happy to help ๐