I have made a flutter app with stripe integrated payments. I am using stripe hosted payment pages. My question is that when the user selects the card payments, the customer_email
is sent with the webhook event that was prefilled by the checkout link returned from the server. But when the user goes through the apple pay method, the customer_email
is set to the email of the apple pay account. How can I stop that from happening. I want to define the email that should be sent in the webhook event after the payment is completed.
I have made a flutter app with stripe integrated payments. I am using stripe hosted payment pages. My question is that when the user selects the card payments, the customer_email
is sent with the webhook event that was prefilled by the checkout link returned from the server. But when the user goes through the apple pay method, the customer_email
is set to the email of the apple pay account. How can I stop that from happening. I want to define the email that should be sent in the webhook event after the payment is completed.
1 Answer
Reset to default 0I would suggest that you consider using a different attribute altogether. Rather than use customer_email
, consider adding your own metadata
key-value pair, with the key being called something you can use in your flutter app like "flutter_email" and the value being the email you want to pass and receive through the webhook event. Stripe will send that metadata back to you through the webhook event. That way you won't be dependent upon what Stripe may/may not do to the customer_email
data.
You can then also pass any other information you want through the metadata
attribute in other key-value pairs, such as a customer ID that you have within your app, which might make it easier for your app to connect the webhook event to your own data.
customer_email
? Is itcheckout.sessionpleted
? It would be easier to provide the Checkout Session data for both Apple and non-Apple transactions. But technically you can't change the email after it is paid. – orakaro Commented Feb 21 at 8:03prefilled_email
as X. I am looking into checkout session creation in stripe to help me here. – Arshpreet Singh Commented Feb 21 at 8:09