#doooosk-checkout-transactions
1 messages · Page 1 of 1 (latest)
po_1OGWveJTGA1mwr6WANBR5Mne is my payout ID which contains 2 transactions
I'm fetching the payout details like this:
const payoutDetails = await stripe.balanceTransactions.list({
payout: payoutId,
expand: ['data.source.source_transfer.source_transaction'],
})
This is the first transaction in that payout. It contains the customers details in this field billing_details.
This was a card transaction
I'm following so far
My question is:
Is there some kind of list that shows the possible fields for different transaction types inside a payout so that I may be able to fetch the customer details properly?
Sorry, my newer messages are sending. Discord is just showing 'processing'
This transaction was made through cashapp but notice how the billing_details field does not contain the name, and there is a completely new field payment_method_details which contains their cashapp info (cashapp tag)
Sorry for the inordering of messages. Discord did not send them sequentially
No worries!
Is the question here just why the cashapp payment has a different shape than the card one?
Yes, and is there some kind of list where I know which transaction type will have which field for customer info (name and email)
So far our app has only seen card and cashapp, and they had different fields.
Since there might be more payment methods, I'd like to know how I can fetch the customer details for each one (a list would be nice!)
card would have payment_method_details.card and cashapp would have payment_method_details.cashapp populated. Essentially payment_method_details would have a sub-hash that corresponds to it's type (https://stripe.com/docs/api/charges/object#charge_object-payment_method_details)
Our highest priority is the customer name, and then their email
But there might be more payment methods than just those two.
How can I cater for those?
Look at the link I sent you - there's a subhash for each payment method type
Got it
And why were the billing details empty for the cashapp transaction in the payout I've shared above?
You only got some of the billing details because you're using a Payment Link that's not configured to always require billing address - since billing adress is not required to complete a cashapp payment we don't collect it
If you 100% always want to collect a biling address you need to update your payment link to always require it
doooosk-checkout-transactions
👍