Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

850
Views
NEXJS stripe v3:1 Uncaught (in promise) IntegrationError: Missing value for Stripe(): apiKey should be a string

v3:1 Uncaught (in promise) IntegrationError: Missing value for Stripe(): apiKey should be a string.

I'm getting this error in next JS when trying to use stripe pre-built checkout.

.env.local (full key replaced with ..... for stackoverflow)

NEXT_STRIPE_PUBLIC_KEY=pk_test_51Jl......

in function call

 const stripe = await loadStripe(process.env.NEXT_STRIPE_PUBLIC_KEY);

if I was to put the Publishable key directly in it works but from the env its not working for some reason

for example this would work

  const stripe = await loadStripe(`pk_test_51Jl...`);

I have the example below also and it didn't work.

const stripe = await loadStripe(`${process.env.NEXT_STRIPE_PUBLIC_KEY}`);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!