#sanjeewa
1 messages · Page 1 of 1 (latest)
Hi there!
This is a Destination Charge, meaning the platform will pay the Stripe fee.
Yes I got it. How can I change this to deduct stripe_fees from connected account when its come with application_fee also ?
there's no specific parameter for this. But you could use application_fee_amount to collect a fee from the connected account, equal to the Stripe fee.
You can learn more about application fee for Destination Charges here: https://stripe.com/docs/connect/destination-charges#application-fee
Sorry I dnt understand! How Can I do this ?
This is not a Destination Charge (like the code you shared before), but a Direct Charge.
For Direct Charges the stripe fee is taken from the connected account.
How to create a Direct Charge is explained in the page you just shared: https://stripe.com/docs/connect/direct-charges#create-a-charge
With direct charge How can I get the application fee to platform?
Yes I tried this too , it always returned a error with code block
This is the error
👋 taking over for my colleague. Let me catch up.
Do you have any idea why it is saying
yes thanks
since you're doing a Direct Charge now
the PaymentIntent is created on your Connected Account
when you want to retrieve it you need to also pass in the stripe_account header, same way as you did when you created the PI
Sorry I do not understand ! Can you provide me example code block?
are you doing a $this->stripe->paymentIntents->retrieve somewhere in your code?
We do not use this in this particular page, but used in some other places
the error you shared in the screenshot is related to that retrieve function
within it you need to add the second parameter