Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mithrandir69's avatar

how to make the stripe's session email the same as the user email and make it non editable

i'm asking if there is a way to display the user email in the stripe's checkout session email(customer's email) and make it non editable , so I don't have to store once again the customer email in my DB

0 likes
2 replies
Braunson's avatar
Braunson
Best Answer
Level 18

When you generate the Stripe checkout session, you can set the user's email there using the customer_email key in your payload to Stripe (when creating the checkout session).

For example:

Stripe\Checkout\Session::create([
     'customer_email' => '[email protected]',
    // Other required params..
]);
1 like

Please or to participate in this conversation.