javascript - How to properly get Account Id to frontend from Stripe Connect?

one text

Solution:

Sharing account and source (did you mean PaymentMethod?) IDs with your frontend is not just fine, it's expected. In order to make requests with Stripe.js on behalf of connected accounts you need to provide the account ID when initializing.

Doing anything malicious with those IDs requires a secret key, which as long as you aren't sharing that with the client you should be fine.

Source