#vdoulcier
1 messages · Page 1 of 1 (latest)
Hi
It depends on the Charge type you'll be using? Destination/Direct ?
It's only for a payment method enrolment, and I'd like the payment method to be enroled in the right connected account.
I will generate a client_secret for the right connected account (using Stripe API), but don't know which PK use for Elements in that case.
What you can do is using Stripe Connect Authentication header for the backend APIs call
https://stripe.com/docs/connect/authentication#stripe-account-header
And add the connect account id in the client side:
https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
I already use the stripeAccount param (Node lib), so I think it's OK for the backend API call.
For the front side, I understand that I can use the top Stripe account pk, and just add the stripeAccount param for initialization?
yes exactly
Thank's!