Skip to content

how to get payment_method type? #612

@alexellison

Description

@alexellison

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,
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions