#Dev-Ahmed-Hasnain-connect

1 messages · Page 1 of 1 (latest)

languid cedar
#

Hi 👋 how can we help?

ebon wadi
#

$stripeRefunds = $this->stripeClient->refunds->all(
['limit' => 100],
['stripe_account' => $business->businessOwner->stripe_connect_id]
);

#

i am calling the api like this, i can get the charges and payouts of the account but i am not getting the refunds and paymentIntents of that specific account. it gives the the refunds and paymentIntent of the main account / platform account

#

can you please help me out how to get the refunds of that specific account

languid cedar
#

Gotcha, could you send me the IDs of some requests where you tried to pull the Payment Intents and Refunds for the Connected Account, but received the platform's instead?
https://support.stripe.com/questions/finding-the-id-for-an-api-request#:~:text=How do I find the,(Request IDs API Docs).

ebon wadi
#

i am testing on local

#

i can not find the request

#

tell me i am using the right way to get the refunds of that account yeah ?

languid cedar
#

I believe so, but can you confirm which client library and what version of it that you're using?

ebon wadi
#

sorry , what do you mean by client library and version, can you please tell me

languid cedar
#

Apologies, I see now that's using our PHP library.

ebon wadi
#

i am using all list apis and using client_account_id in the same way. but refunds are not working as it is intended

languid cedar
#

Can you share the account ID of your platform? And the ID of a connected account that you recently tried this for?

ebon wadi
#

platform account : acct_1KtRiqJmQKfTj5hP

#

connected account: acct_1LFcH5R7fn2OZXmq

languid cedar
#

Thank you, taking a look.

#

Oh, I see that you're using Laravel Cashier. That isn't our library, it's built by Laravel, so we're not as familiar with how it works. I do see that your Platform accounts made requests to that Connected Account.

What are you seeing when this happens, no results?
It looks like you're using Destination Charges, so the Payment Intents and associated Refunds will reside on your Platform account.

ebon wadi
#

i am not using cashier as cachier does not give any support for stripe connect, although i am using destination charges.

#

what doest that mean then, i can not get refunds of connected account ?

languid cedar
#

Apologies, but all of the recent requests for those accounts have the Laravel Cashier user-agent on them, so they appear to be coming from that library unless you're explicitly setting your user agent to mimic it.

ebon wadi
#

toby just tell me that if i use destination charge as my way to send money to connected accouts , then the payment intents and refunds will always be of the platform as they are firstly initialized at the platform account ?

languid cedar
#

Correct, when working with Destination Charges, the associated Payment Intent and Refund objects are stored on the Platform account.

ebon wadi
#

ok thanks a lot

languid cedar
#

Any time!