Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get payment_method type? #612

Open
alexellison opened this issue Dec 20, 2022 · 0 comments
Open

how to get payment_method type? #612

alexellison opened this issue Dec 20, 2022 · 0 comments
Labels

Comments

@alexellison
Copy link

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,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant