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

208
Views
Make email in Stripe Checkout for already existing customer read-only

I'm creating a Stripe checkout session (server-side) for already existing customer. According to Stripe documentation, I should pass customer Id as a customer parameter. Stripe internally gets the customer object and fills his email addess in the checkout UI. It works, but the email field is editable and I don't want users to be able to change their billing email. Is it possible to make this field read-only? Here my code:

await stripe.checkout.sessions.create({
     line_items: [{ price: stripePriceId, quantity: 1 }],
     customer: stripeCustomerId,  // here I fill the stripe customer ID of the user
     mode: 'subscription',
     payment_method_types: ['card'],
     allow_promotion_codes: true,
     success_url: `${process.env.FRONTEND_URL}/premium-payment-success`,
     cancel_url: `${process.env.FRONTEND_URL}/premium-payment-failure`
});

I'd really like to prevent users changing their Stripe checkout email, because knowing each user has the same billing email in Stripe would make things much easier.

Side note: When the user buys something for the first time, instead of customer parameter, I pass customer_email and the email is in this scenario read-only.

Any help is appreciated!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This is not currently possible, but I believe it's something Stripe is considering adding.

over 4 years ago · Santiago Trujillo Report
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!