#tobewisebeforeiamold_link-payment-methods
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1501975621675515938
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here are two payment method IDs from a sandbox environment: one with a card property and the other without
const card = 'pm_1TPUnRCrxkN8ywNkjNt6KBCD';
const noCard = 'pm_1TPUc7CrxkN8ywNkcVCxkRmF';
Hello. We define the Payment Method object here: https://docs.stripe.com/api/payment_methods/object
Each possible type has it's own nullable object property. Most of the properties in our API uses an "omit if null" rule so they are only returned when they have values.
To succinctly answer your question: If a PM is of type card it will return a card property. If it is of type link it will return a link property
Thanks! Ya, I get that if type=link then it's a link payment method. But link is really just a saved payment method. So if you pay for something with a card and save it using link, then use link to pay for something else, the paymentMethod.type is link, but the payment actually comes from that card.
If someone pays using a card, saves it using link, then pays with that link payment method, I'd like to report that as a card payment, because ultimately that's what it is, isn't it? Conversely, if someone pays with us_bank_account and saves it using link, then uses that link, ultimately the payment comes form us_bank_account. SO really what I'd like to be able to do is look at that PaymentMethod object where type=link and determine if the underlying payment method is card or not card. Does that make sense?
Here's where the dashboard seems to make link + card visible. I guess I'd just like to be able to see that data via an API request.
Unfortunately we do not return that data via the API. Link was designed to be relatively opaque to the merchant and only tell you that it was a link payment method. The dashboard does some "helpful" things but it's not representative of what you can get via the API.
Hm, that's what that documentation seemed to indicate...but I had my fingers crossed that I was missing something. Well, thank you for the confirmation!
Happy to shed what ๐ก I can ๐