Use Elements
useElements To safely pass the payment information collected by the Payment Element to the Stripe API, access the
Last verified 2026-09-24
Is this helpful?
Elements instance so that you can use it with stripe.confirmPayment. If you need to access an Element from a class component, use ElementsConsumer instead. ### Return value - result Returns the current Elements instance or null while the provider is still loading. ### Example title Call useElements Is this helpful?