#sanjeewa

1 messages · Page 1 of 1 (latest)

wicked shardBOT
subtle walrus
#

Hi there!

#

This is a Destination Charge, meaning the platform will pay the Stripe fee.

vivid cave
#

Yes I got it. How can I change this to deduct stripe_fees from connected account when its come with application_fee also ?

subtle walrus
#

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.

vivid cave
#

Sorry I dnt understand! How Can I do this ?

subtle walrus
#

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.

vivid cave
#

With direct charge How can I get the application fee to platform?

subtle walrus
#

Please read the doc I shared, it explains everything

vivid cave
#

Yes I tried this too , it always returned a error with code block

#

This is the error

floral idol
#

👋 taking over for my colleague. Let me catch up.

vivid cave
#

Do you have any idea why it is saying

floral idol
#

would you mind sharing the request id?

#

or the pi_xxx

vivid cave
#

Hope you mean this ?

#

pi_3MMrd6FboisEfQFg1sWgtcFz

floral idol
#

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

vivid cave
#

Sorry I do not understand ! Can you provide me example code block?

floral idol
#

are you doing a $this->stripe->paymentIntents->retrieve somewhere in your code?

vivid cave
#

We do not use this in this particular page, but used in some other places

floral idol
#

the error you shared in the screenshot is related to that retrieve function

#

within it you need to add the second parameter

floral idol
#

with ['stripe_account'=> ...

vivid cave
#

Here Im not doing a retrieve, this error is comes when call a paymentIntent create like this

floral idol
#

the error you shared in the screenshot is from a GET method not a POST

#

the code you're sharing here is a POST