#jamesdahlen.nwi

1 messages · Page 1 of 1 (latest)

odd wrenBOT
tulip pewter
#

Basically going backwards like so: Retrieve Payout > Get All Balance Transactions For Payout > For Each BT Get Source(charge), Get Transfer (from Charge). thinking this will allow me to connect the Payout with my actual item data (products from ecommerce store)

supple seal
tulip pewter
#

eh I have tried that, using 'type' => 'charge', but there are no results. when i use 'type' => 'payment' i get what i expect. Not sure why i get a py_xxx and not ch_xxx

#

internally i am saving the ch_xxx values, so i'm trying to match that with a stripe result, erg

#

ah maybe in that doc i should be using the additional parameter for stripe_account in the BT request? I am providing that in the StripeClient already though

#
  'api_key' => '',
  'stripe_account' => '',
]);
$params = ['limit' => 100, 'payout' => $payout->id, 'type' => 'payment'];
$balanceTransactions = $stripeClient->balanceTransactions->all($params);```
#

and later ... $source_transfer = $stripeClient->transfers->retrieve($charge->source_transfer); this is where the error occurs

supple seal
#

Not sure why i get a py_xxx and not ch_xxx
internally i am saving the ch_xxx values, so i'm trying to match that with a stripe result, erg
As a quick aside: internally you should be saving both those values, as py_ values can be regular charges

tulip pewter
#

that docs did help, i think though. sorry i usually come with a more clear question. using the expand is proving helpful at accessing that transfer for me

supple seal
#

Ah! Okay good. Are there any outstanding questions? Are you unblocked for now?

tulip pewter
#

Yes on this specific topic I think i'm OK for now. I am curious about why it seems better for me to save thech_ values instead of both py_

#

may be for another question- thanks!