I'm trying to put together a report of transactions by payment method type such that the output would be grouped by values like credit card, debit card, paypal, etc.
It looks like the field that should contain this data is payment_method.account_type based on your API docs however I don't see any transactions (in my account) where the payment_method.account_type field exists.
Below are the payment method fields I see in the payment_method dict when fetching a transaction.
Can you recommend a way to access the type of a given payment method?
"payment_method": {
"object": "credit_card",
"card_type": "MasterCard",
"first_six": "123456",
"cc_bin_country": None,
"last_four": "7890",
"exp_month": 6,
"exp_year": 2024,
},
I'm trying to put together a report of transactions by payment method type such that the output would be grouped by values like credit card, debit card, paypal, etc.
It looks like the field that should contain this data is
payment_method.account_typebased on your API docs however I don't see any transactions (in my account) where thepayment_method.account_typefield exists.Below are the payment method fields I see in the payment_method dict when fetching a transaction.
Can you recommend a way to access the type of a given payment method?