#doooosk-checkout-transactions

1 messages · Page 1 of 1 (latest)

lofty blazeBOT
marsh thistle
#

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

upbeat olive
#

I'm following so far

marsh thistle
#

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?

marsh thistle
#

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

upbeat olive
#

No worries!

#

Is the question here just why the cashapp payment has a different shape than the card one?

marsh thistle
#

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!)

upbeat olive
marsh thistle
#

Our highest priority is the customer name, and then their email

marsh thistle
upbeat olive
#

Look at the link I sent you - there's a subhash for each payment method type

marsh thistle
#

Got it

#

And why were the billing details empty for the cashapp transaction in the payout I've shared above?

upbeat olive
#

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

marsh thistle
#

Got it

#

Thank you for all your help!

upbeat olive
#

👍