#Smokey
1 messages · Page 1 of 1 (latest)
Why is the client secret invalid?
We also have this newer flow that allows you to accept a payment without creating an intent up-front (and hence a client secret): https://stripe.com/docs/payments/accept-a-payment-deferred?client=react
Because no intent is created. Why would you create an intent at the root of the app?
You don't need to initialize elements at the root of the app though
We just recommend calling loadStripe at the root
Ahh okay, that was what I was confused about. From the example I was under the impression that Elements needed to be initialized from the root