#Roopa

1 messages · Page 1 of 1 (latest)

wary cryptBOT
swift anchor
#

Hi there!

#

Can you share a specific event ID (evt_xxx) that is failing?

lost elk
#

evt_1MqEmXDwT5gdvn7n4rCdAFnG

swift anchor
#

Stripe sent that event to your server, but your server returned a 400 error.

#

So you need to check your server log to understand the issue.

lost elk
#

Ok, we are getting the exception.

#

Do we have to set 'StripeConfiguration.ApiKey ' every time we get anything from strip?

swift anchor
#

It depends on your code. But if you are calling some Stripe API endpoint, then yes you need to set your secret key.

lost elk
#

Second screen shot is the code I am using for 'Invoice update' event.

swift anchor
#

You are doing a GET request, so yes you need to set your secret key.

lost elk
#

Ok, but why I am not getting same error in the Development enevironement?

swift anchor
#

I'm guessing you set the API key in the development environement

lost elk
#

Sorry I am not able to understand. I am using same code for development and live.