#jmschp_sources-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/1405628351871193198
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello ๐
Do you have an example Payment Intent ID I can review?
pi_2Rw32D2ALfsUTznj1OVEkDoK
The source property is the one populated because the default payment method for the customer involved here is a non Payment Method type. E.g. card_
Even though that is saved as the default_payment_method, any Card object card_ is a Source not a Payment Method
All payment methods start with pm_
To be clear, everything will "just work" but you will need to check the source property which I understand can be a pain to remember when processing webhook events or doing similar code-based operations
You can use them as a payment_method when you create payment intents. We describe this here
But this Invoice was generated by Stripe automatically so our system fell back to legacy behavior
Happy to help ๐
one more thing
So if I run Stripe::PaymentMethod.retrieve('card_GAVLXpggRzXBfS') does it return a Payment method as well?
But the ID will be card_GAVLXpggRzXBfS, right?
The Payment Method object returned will have a top level ID that starts pm_. but it will include the Card object with the card_ ID in the card property
ok
It is weired that in the dashboard we only see the ID card_
Yeah we don't have much insight into what powers the Dashboard here. we focus on developers coding integrations with Stripe APIs.