Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prefill customer email via Stripe Payment Link URL

I'm testing out Stripe's new Payment Links in a project, and I'm trying to prefill a user's email address in the email field of the checkout form. I tried appending the payment link URL with the "email" data attribute, which doesn't work, the data isn't passed on:

https://buy.stripe.com/[email protected]

I know Stripe's client-side checkout solution does allow for this, but I'm trying to just use the Payment Link, since it's so much simpler. Any help would be greatly appreciated, thanks!

like image 417
ArushaofDenmark Avatar asked Sep 01 '25 10:09

ArushaofDenmark


2 Answers

Update: it looks like this is now possible using URL parameters including ?prefilled_email. See documentation

?prefilled_email Seems to be working as expected

✅ stripe.com/docs/payment-links/customer-info

like image 51
Aron Korenblit Avatar answered Sep 04 '25 11:09

Aron Korenblit


Stripe Payment Links do not support pre-filling the customer's email.

However, if you're comfortable writing some code, you can use the Stripe API to create a Checkout Session with a pre-filled email. Once you create the session you can send your customer to the url provided in the Checkout Session object.

like image 21
Justin Michael Avatar answered Sep 04 '25 13:09

Justin Michael