"error": "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 Stripe API Reference for details, or we can help at Stripe: Help & Support"
I am using Nodejs locally. I have not uploaded the project anywhere as of yet.
The Create Payment Intent has a client_secret value which is returned to the client via the set value client_secret action. It is returning a secret value that is for this purchase intent only; it is not your secret key from the stripe portal.
The stripe secret key from the portal goes in the server connect settings, on the Stripe tab.