RyzeDeskRyzeDesk

Stripe

4105 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-27

Is this helpful?