#Mahesh K
1 messages ยท Page 1 of 1 (latest)
๐ Hi there, Happy to help!
hi
i getting the folloing error when i update the my database when i catch an event from the stripe webhook
StripeAuthenticationError: You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.
at res.toJSON.then.Error_1.StripeAPIError.message
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
But this is mostly because your didn't authenticate your request, did you checked this link ?
https://stripe.com/docs/api/authentication
This request has successful status 200:
https://dashboard.stripe.com/test/logs/iar_thtjKcxeh7egAg
I meant the requestId that returned this error:
yeah the above one
here is my code
case 'invoice.payment_succeeded':
console.log(event.data.object)
const final_invoice = event.data.object
console.log(final_invoice.payment_intent)
const payment_intent_details = await stripe.paymentIntents.retrieve(
final_invoice.payment_intent
);
console.log(payment_intent_details)
it is the one of case in the switch statement, where i am catching the invoice.payment_succeeded event and in that response i have payment intent id, and by using it i am retriving the payment intent details
This is the code. I need the requestId of the api call generated from that code.
Nope this 200 too, you can check the status of the requestId in your dashboard https://dashboard.stripe.com/test/logs/req_...
No, if you are getting error, that means in the request too you are seeing error.
hi'vanya
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
Could you please summarise the latest question? Thanks!