#dhruvs
1 messages · Page 1 of 1 (latest)
Hmm... give me a few minutes to dig through some docs
Thank you so much
Essentially I'd like to give the user a chance to enter their email and pay at the same time
I think you'd be able to get it back if you retrieve the resulting PaymentIntent server-side and checking receipt_email, does that work for you?
Yeah I don't think there's a way to get that from the Link authentication element client-side right now - but you could try retrieving the Payment Intent client-side as well and seeing if that works
Also is the link-authentication element much different from using the payement request button which contains link?
Thank you
I don't think they're much different - it just depends on if you want to use the PaymentElement (in which case I'd recommend the Link Authentication Element) or if you want to use the PAymentRequest BUtton by itself
Got it. The problem currently is that if I use the link authentication element then the customer needs to fill email twice (since one is the custom email field I created to access the input client side)
I believe you can pass in the own email you collect to PaymentElement and have it work (https://stripe.com/docs/payments/link/accept-a-payment?platform=web&ui=elements&link-integration-type=before-payment#design-your-integration)