#psarojanand-payout

1 messages ยท Page 1 of 1 (latest)

vale hound
#

๐Ÿ‘‹ Happy to help

#

Are you looking to have the transactions in a payout?

verbal plaza
#

yes through API

vale hound
verbal plaza
#

I tried this but not getting the desired result Transfers have two columns one is ID that starts with tr_ and other is py_. On the dashboard the Payout id is linked with py_

but in API using expand options for mentioned column doesn't give neither py_ nor tr_ details or any common element as expand gives only one object of balance transaction while Payout has multiple Transfer Transaction.

vale hound
#

Are you using manual or automatic payout?

verbal plaza
#

Both

#

I am looking for the automatic most of payouts are automatic

vale hound
#

For manual payout, there won't be any transaction details since it's a lump sum that you request to pay out to the bank

verbal plaza
#

Thats fine for maunal Payout

vale hound
#

For automatic payout, the response should contain the py_ in data.source

verbal plaza
#

Let me try and get back to you

#

what is the possible reason for this

#

as Payout out object did exist

#

What I am missing

hard yarrow
#

usually means you're using the wrong API key, or that's a payout on a Connected account and you didn't use the Stripe-Account option; or the opposite and it's a payout on the platform and you did use the Stripe-Account option

verbal plaza
#

API key is correct what is Stripe-Account option can you give me some insight yes this is Connected Account Payout.

hard yarrow
verbal plaza
#

still getting same error

hard yarrow
#

yep, doesn't look like you changed anything to use stripe_account so that doesn't seem surprising

verbal plaza
#

sorry

#

I connected the account first and then I tried to retrieve the connected account PO details

hard yarrow
#

if the Payout is on a connected account it's \Stripe\Payout::retrieve("po_xxx", ['expand'=>[...]], ['stripe_account'=>"acct_xxx"]);

verbal plaza
#

oh sorry my mistake

hard yarrow
#

no worries. You need to make sure you 100% understand how to use this header and what those errors mean and on which accounts the various objects live on, to build such an integration with Connect

verbal plaza
#

ok I am trying if got any error will connect Thanks you

lament sand
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

verbal plaza
#

Hey tarzan

hard yarrow
#

share your code.

#

you probably are not doing \Stripe\BalanceTransaction::all passing the ID of the payout, like in the docs my colleague shared 2 hours ago, and instead you're just retrieving the Payout directly.

verbal plaza
#

I am just retrieving Payout directly
$payout_detail = $stripe->payouts->retrieve('po_1LPgmvPQPjWNrsSJsQU9ctup',['expand'=>['balance_transaction','balance_transaction.source']],['stripe_account'=>"acct_xxxxx"]);

hard yarrow
#

yep which is wrong

#

the docs clearly show what to do

lament sand
verbal plaza
#

sorry for the trouble mate I got the required information
thanks for your help

lament sand
#

let me know if you need any more help

verbal plaza
#

sure will do. Thanks once again