#Alain

1 messages ยท Page 1 of 1 (latest)

heavy boltBOT
unreal warren
lean osprey
#

Yes here the req id :

req_als9hUIh6S8Yjj

unreal warren
#

This request returned a 200

lean osprey
unreal warren
#

But it required 3DS authentication

#

That's the webhook

#

That 500 is from your webhook endpoint

lean osprey
#

Yeah my question was about the webhook

#

in test mode the webhook is working perfectly

#

that's why I was asking if there is any difference between the events we receive in test and live mode

#

on a webhook

#

in order to try to understand why it's working in test mode but not in live mode

unreal warren
#

Can you share that webhook event ID?

lean osprey
#

"id": "evt_3MZxRxFkgdhsoVd90hYo7cKG"

unreal warren
#

I see three delivery attempts with this event. One of them is successful but returns {"status":"fail to verify signature : No signatures found matching the expected signature for payload"}

#

The other 2 fail on your server with 500 response

lean osprey
#

Yes, it's what I'm trying to figure out

#

because on test mode I have this response

#

the only thing that I change in the configuration are the api keys

#

between test and live mode

unreal warren
#

The webhook secret is different between the two. Is that what you mean by the API key?

lean osprey
#

yes

#

I'm changing the api keys and the webhook secret signature of course

unreal warren
#

Can you include logging in the live endpoint to ensure the Webhook secret is being loaded into the runtime.

lean osprey
unreal warren
#

One of the most common issues encountered when going for a test environment to live is the webhook secret isn't being loaded into runtime so the signature verification fails

#

Yup I would log both the sig_header and stripe_endpoint_secret before the try block

lean osprey
#

you mean even before the first try with the load ?

unreal warren
#

Yes, since both should exist at that point

lean osprey
#

Yeah ok I'm going to add those logs

#

well I'll keep you updated then because to see the result I need an other real payment

unreal warren
#

Right. Since this is the Live mode webhook endpoint. We'll be here to answer your questions as they come up

lean osprey
#

ok perfect

#

thank you ๐Ÿ™‚