#KarolinaRw-payouts

1 messages ยท Page 1 of 1 (latest)

winter delta
#

hi! To be honest I don't completely understand the question. Can you give an example of a transaction you're trying to implement and how the parties would be and where you want the money to go?

fossil ibex
#

I think Karolina implemented a flow to charge customers for connected account, but also needs to charge direct customers. In the past, you needed to implement a separate flow indeed, because you were not allowed to pass along your own account ID as the stripeAccount when creating payment intents for instance. this has been fixed quite some time ago where you can basically just pass along your own account_id as the 'connected' account id and stripe will treat it as a direct paymentintent / customer / whatever you're creating.

winter delta
#

yes I suppose that's possible. You can technically set stripeAccount to your own account/platform's ID so that code stays the same but only the configuration changes.

lusty hamlet
#

That was exactly what I ment. I tried it though ant I got this message:

#

wait I will send a better message

#

Can only apply an application_fee when the request is made on behalf of another account (using an OAuth key, the Stripe-Account header, or the destination parameter).

#

and the only thing I change is the original account id instead of the connected account Id

fossil ibex
#

(I should come work for you, @winter delta ๐Ÿ˜‰ )

#

ah! I don't have application_fees, so that might still be something they haven't "fixed"... They should ignore the application fee when the "connected" account is in fact the platform indeed. ๐Ÿ™‚

lusty hamlet
#

okay mabye i can just remove that "if it is the original account"?

winter delta
#

yes you have to remove the application fee

#

so you do need to branch in your code