#Merino

1 messages ยท Page 1 of 1 (latest)

brittle harnessBOT
still escarp
#

Tell me if there's something missing

torn flicker
#

Hi ๐Ÿ‘‹

still escarp
#

Or if it's better for us to go on call

torn flicker
#

Can you share an event ID (evt_XXXXX) so I can review it?

still escarp
#

Yeah

torn flicker
#

We don't offer calls through Discord

still escarp
#

evt_1LnSXyBoIyKi4clHZsmrPVIc

still escarp
torn flicker
#

?

still escarp
#

Or you need the webhook id?

torn flicker
#

Yes that will work

still escarp
#

Ok

torn flicker
#

I'm not seeing any response to this request.

still escarp
#

I'm sending a simple 200 status

#

Should I send a body?

torn flicker
#

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.

still escarp
#

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?

torn flicker
#

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

still escarp
#

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

torn flicker
#

๐ŸŽ‰

#

Great, I'm glad. Feel free to come back and ask more questions if you get stumped.

still escarp
#

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

torn flicker
#

When you say

stripe already recognized the input that he used on his computer
Do you mean logging in to the Dashboard?

still escarp
#

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

torn flicker
#

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

still escarp
#

I see

#

Thanks for all the help again!

torn flicker
#

Sure thing, happy to help ๐Ÿ™‚