How to delay the stripe client side component?

I’m using stripe connect, I need to add the connected ‘account_id’ to the client side Stripe component.
So I get the account_id from the db, and load it in there using a dynamic attribute:

However, it takes too long for the server connect to get the ‘account_id’ which causes the stripe component to initialise without the account_id.

That is throwing me errors that the paymentIntent_id is missing

The error disappears and works as expected when I add the account_id as a static value.

How can I delay the loading of the stripe component so it’ll wait for the {{account_id}} to be populated?

Community Page
Last updated: