#jamesdahlen.nwi
1 messages · Page 1 of 1 (latest)
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)
Does this section of the docs get you oriented in the right direction?
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
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, aspy_values can be regular charges
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
Ah! Okay good. Are there any outstanding questions? Are you unblocked for now?