Closed kezern closed 7 years ago
Just use the accountId()
method when using connected accounts.
Our methods doesn't accept headers to be set like that.
Sorry I don't understand what you are saying. How should I use that method?
$stripe->accountId('connected-account-id-here')->charges()->create([ .. ]);
Hi Brunogaspar, I'm getting this error with that code.
Call to undefined method Cartalyst\Stripe\Api\Account::charges()
It's accountId()
instead of account()
, i updated my example.
Thank you! that worked! I only have one question. with the first code, I can see the payment in my own account. If I use the second method, the payment appears only in the payment section of the connected account. Is that normal?
Yes, in this situation it's normal and expected.
This is very well explained here.
I have successfully create a charge to a connected account to my connect platform with this code. $stripe = Stripe::make('');
It works fine. But I have a problem when I try to add an application fee. I'm trying this code.
I get following error.
How can I collect application fees?
Best regards