Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Use Elements


useElements To safely pass the payment information collected by the Payment Element to the Stripe API, access the 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

Last verified 2026-09-24

Is this helpful?