#Mr Stinky Pants

1 messages · Page 1 of 1 (latest)

weak relicBOT
median pier
#

What do you mean by not working in live? What is/isn't happening?

proud shore
#

just doesnt seems to fire at all

#

i have setupintent succeeded turned on

#

and i some one added their card but it didnt fire

median pier
#

Can you share the setup intent ID that succeeded?

proud shore
#

its saying its incomplete

#

how can that be if they added their card

median pier
#

Well, did that succeed? What happened when the setup complete call was made?

proud shore
#

sorry there was another page

#

its succeeded but no event fired in logs

#

its showing up now for some reason just seems to have been updated

median pier
#

Great!

#

It might have been that the previous setup intent did not succeed as you thought it did

#

if you only get setup intent succeeded events, it would make sense you got no events until one succeeded

proud shore
#

well this was 4 hours ago

#

i just still have a problem the webhook is not working on live but is on test

median pier
#

I only see a live webhook endpoint configured on your account

proud shore
#

i have a local listner that works

median pier
#

Sure, ok

proud shore
#

but when i try it live it it cant be getting anywhere

median pier
#

So what exactly do you mean by not working?

proud shore
#

it must be going in to the try catch or something

#

what does stripe want in the response to send an error message back?

#

my webhook is actually a webservice and my responses are usually a stream

median pier
#

Stripe only cares about 200 success status code vs not

#

200 = delivered successfully

#

anything else is considered a failure

proud shore
#

so it wont sent any message?

median pier
#

The body is irrelevant (in almost all cases, theres an exception I don't believe applies to you)

#

You can send a body, and we'll should you that body in the dashboard logs for 15 days

#

but stripe doesnt do anything with it

proud shore
#

do you have any idea how to post a body back?

#

.net

#

or is it not showing because of this? The signature for the webhook is not present in the Stripe-Signature header.

median pier
#

So if you're encountering signature verification errors, your server might end up responding with an error code indicating failure, or not process the event like you expect even if you've already responded with success

#

You'll have to get a lot more specific to let us help you with that, ie share a particular event id and lets discusss exactly what is happening and not working etc

proud shore
#

evt_1M55tqJKY8YXH2zhCianrrU2

#

it would be nice to get the webhook to return some body so i can check the problem

#

in this event under response it says The signature for the webhook is not present in the Stripe-Signature header. - although it is 200 ok

median pier
#

Can you share your endpoint code here for us to look at?

#

Make sure to remove any secrets

proud shore
#

just before i do that can i try this hosted enpoint in test mode?

#

i assume i can run code locally but it will use the live webhook then?

#

ive just done a setup intent there using the test mode hosted endpoint but i dont see any events

median pier
#

Yea, you can (and should!) set up a test mode endpoint hosted on your server

#

I suggest using a separate endpoint or indicating testmode with a query parameter etc, not using the exact same URL