#wolfborg.
1 messages · Page 1 of 1 (latest)
What is the difference between using transfer_data: { destination: "CONNECTED_ACCOUNT_ID"} and on_behalf_of: "CONNECTED_ACCOUNT_ID" to specify the connected account?
check this part of the guide:
https://stripe.com/docs/connect/destination-charges#:~:text=When you use,the connected account.
Got it, thanks!
Also is it neecssary on client-side to pass the CONNECTED_ACCOUNT_ID while creating the stripe instance (to be used with payment elements) so that we can use the same CONNECTED_ACCOUNT_ID while creating the paymentIntent on server?
it is if you are using Connect with Direct Charges
With our current integration which doesn't use payment elements, we pass in {stripeAccount: '{{CONNECTED_ACCOUNT_ID}}'} while creating the payment intent
that means you are using Direct Charges
for the same use case should we use transfer_data or on_behalf_of?
well no, not necessarily, because then you would be using Destination Charges, which work totally differently from a refund/dispute/integration perspective, so first you need to understand how you are using Connect overall