Stripe API/Secret Key Error

I followed the tutorial here, Stripe Custom Checkout Forms to create a Stripe checkout form.

I am receiving the following error:

“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 https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/."

I am using Nodejs locally. I have not uploaded the project anywhere as of yet.

Here is the screenshot of my App Structure.

Here is the screenshot of my Server Action.

Thank you in advance for your assistance. :wink:

Community Page
Last updated: