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!
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With