#mshakirkhan

1 messages · Page 1 of 1 (latest)

violet anchorBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

olive shell
#

Hi, what's your question?

arctic briar
#

Hi, I am creating payment intent in the connected account, I want to charge stripe fee from connected account, I don't want to pass amount key in transfer_data, becuase if in future stripe will change amount so I have to change it manually, and I want to show the stripe fees on the connected account dashboard.here is my code snippet.
$paymentIntent = $stripe->paymentIntents->create([
'amount' => 100, // Amount to be charged to the customer
'currency' => 'usd',
'customer' => $customer_id,
'automatic_payment_methods' => ['enabled' => true],
'transfer_data' => [
'destination' => 'acct_1MrSLjBULX', // ID of the connected account
'amount' => 88 // Amount to transfer to the connected account, after Stripe fees
],
'on_behalf_of' => 'acct_1MrSLjBULX', // Crucial parameter to ensure fees are charged to the connected account
'metadata' => [
'name' => "Shah",
'email' => "Test"
]
]);

olive shell
#

Please don't just copy/paste the same message. I'm asking you to explaing what your question is. I don't understand what you mean.

arctic briar
#

I am creating payment intent on connected account, you can see above code snippet. I want to charge stripe fee from connected account. And also it should display as stripe fee on the connected charge detail page.

Becuase currently seems like stripe fees is charged from the main account. This is my current snippet without transfer_data.amount
$paymentIntent = $stripe->paymentIntents->create([
'amount' => 100,
'currency' => 'usd',
'customer' => $customer_id,
'automatic_payment_methods' => ['enabled' => true],
'application_fee_amount' => 12,
'transfer_data' => ['destination' => 'acct_1MrSLjBjRZCwDULX'],
'metadata' => [
'name' => "Shah",
'email' => "Test"
]
]);

olive shell
#

I want to charge stripe fee from connected account.
So you want to pass the fee onto the Connected account?

#

Or you want to take your own fee?

arctic briar
#

Yes I am taking my platform fees
'application_fee_amount' => 12,

And yes I want to pass the fee onto the Connected account, I need both.

olive shell
#

You might want to look into Separate Charges and Transfers (SC&T) in this case, because you won't know the fee amount until after the funds land in your Stripe account. With SC&T, you can take some time between when the funds land in your platform account and when you transfer money to the Connect Account: https://stripe.com/docs/connect/separate-charges-and-transfers

Learn how to use Connect to create charges on your platform account on behalf of connected accounts, perform transfers separately, and retain funds in the process.

arctic briar
#

Everything is working as I need. I want that connected account should pay stripe fees and the fess should display here. If I do separate charge and transfer I won't get these information.

olive shell
#

You will get that information

arctic briar
#

This is connected account payment detail screenshot not main account.
If I charge and transfer then user even won't see the collected fee, User will just get the amount.

#

I am using stripe standard connected account.

olive shell
violet anchorBOT
arctic briar
#

I am using this with additional key 'transfer_data' => ['destination' => 'acct_1MrSLjBjRZCwDULX'], because I have customers on my main account which I don't want share and duplicate on connected account that's why I am using this.

olive shell
#

Right, well those are the options. The only way to continue using Destination transfers in this case is to try and calculate the Stripe fee before the payment goes through.

stuck brook
#

If you're using Standard accounts you should be using direct charges though, which has the fee handling you already want. Destination charges / charge&transfers are not recommended for standard accounts.

arctic briar
#

So you are saying this is not recommended on standard accounts but it's working fine.
$paymentIntent = $stripe->paymentIntents->create([
'amount' => 100,
'currency' => 'usd',
'customer' => $customer_id,
'automatic_payment_methods' => ['enabled' => true],
'application_fee_amount' => 12,
'transfer_data' => ['destination' => 'acct_1MrSLjBjRZCwDULX'],
'metadata' => [
'name' => "Shah",
'email' => "Test"
]
]);

stuck brook
#

Yes, it can de done, but it has some consideration such as the connected account being unable to manage customer refunds and you being responsible for chargebacks etc. One of those is that you'll have to manage covering the fees and adjust the amount you send to the connected account.