Link Authentication
Enable faster checkout with Stripe Link. The Link Authentication Element collects customer email and enables one-click payment for returning customers.
Try the demo
The demo runs in Stripe test mode against the demo backend at backend.vuestripe.com, so nothing is charged. Pick a product, enter any email address, then pay with the test card 4242 4242 4242 4242, any future expiry date and any CVC. The demo ends with the PaymentIntent ID.
1Product
2Payment
Complete
0
Select a Product
Loading test products...
How the demo works
- The product step loads the demo account's one-time products from the backend.
- Choosing a product asks the backend to create a PaymentIntent for that product's price and returns its client secret.
- One
VueStripeElementsgroup holdsVueStripeLinkAuthenticationElementaboveVueStripePaymentElement. Because both elements share the group, the email entered in the first one reaches the Payment Element, and when the email belongs to a Link customer, Stripe offers that customer's saved payment details. - The Link Authentication Element's
changeevent carries the email (event.value.email). The demo shows it under the field. - The Pay button calls
confirmPayment()fromusePaymentIntent(). It runselements.submit(), then confirms the PaymentIntent withredirect: 'if_required'. - When the PaymentIntent status is
succeeded, the demo shows the PaymentIntent ID.
See also
How-to guide: Add Link to checkout. Reference: VueStripeLinkAuthenticationElement.
