#mindsetinmeta
1 messages · Page 1 of 1 (latest)
hello! can you share how are you trying to retrieve the payments associated with a payout first?
it's probably referring to https://stripe.com/docs/api/transfers/object#transfer_object-source_transaction
the source_transaction is a charge object, right?
yep, pretty much - the object id would start with ch_ or py_
the charge object has a status field that can be succeeded, pending or failed. at the same time, it has another field "paid" that is true or false. I'm assuming I can use any one of them to show the payment status, right?
hrm, are you accepting non-card payments?
no
personally, i would use the status field. both of them should work the same but i'm not 100% sure off the top of my head
got it
is there a document that illustrates the relationship of the following objects? it's too complicated to understand.
which objects?
ah, no, unfortunately not
what are the difference of balance_transaction, py, tr, and charge?
py and tr map to what objects?
balance_transaction : https://stripe.com/docs/api/balance_transactions
tr : https://stripe.com/docs/api/transfers
Charge : https://stripe.com/docs/api/charges
py_ is a object that is the result of a non-card payment, or the result of a transfer on a destination account. ch_ is an object that is the result of a card payment
your description for balance_transaction isn't quite accurate. the exact wording in the documentation is Balance transactions represent funds moving through your Stripe account.
txn_ is a balance_transaction object
po refers to a payout object : https://stripe.com/docs/api/payouts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.