#streetfeels
1 messages ยท Page 1 of 1 (latest)
Hello ๐
It should work for wallets too, yes.
Have you tested the flow out and are seeing diff results?
Yes, correct, tested with setup_future_usage and it's not showing up as one of the payment methods
Hmm interesting, can you share the example PaymentIntent ID?
I just ran a quick test and Google Pay does show up for me
ah jeez - sorry for some reason it was not sending the setup_future_usage param properly, it just worked!
Ah np, glad you caught it ๐
okay, so one follow - up, is there anyway to know which of the listed payment methods is considered the default by stripe?
not sure what you mean, what list are you referring to exactly?
Are you asking about the listed payment methods for customers on the dashboard?
yes correct!
Gotcha. It is the PaymentMethod which is set as default on Customer under invoice_settings.default_payment_method
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
If there are multiple attached PaymentMethods but none set as default then we won't consider any as default.
ahh okay! that's great, we will take a look at that, think that solves are problem. We just want to be able to show the user the payment methods they had used previously and have the default selected already so they can click thru easily.
Gotcha ๐ Glad I could help
just another follow up regarding above, do have to use invoices to access this information?
or will it be available by default anytime a customer object is created?
(with attached payment methods)
You can use the PaymentMethod without invoices, yes.
You'll just have to pass in the PaymentMethod ID when you create a PaymentIntent by using payment_method parameter
ok great!
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and is that default_source parameter different from the invoice one?
Yes, if you're on legacy APIs such as Sources, Tokens etc that's when you'd use default_source parameter