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
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..
]);