#fundrise-default-paymentmethod
1 messages · Page 1 of 1 (latest)
Hi there
How are you setting the default? Are you setting it in invoice_settings.default_payment_method? https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Maybe "default payment method" wasn't the right phrase
I'm creating a customer
then creating a payment method that happens to be a us_bank_account
then attaching the customer and the payment method
then creating a subscription and setting that payment method as the default payment method for the subscription
however, when I try to get the singular payment method by GET https://api.stripe.com/v1/payment_methods/<payment method id>, it doesn't exist
but when I get the customer's payment methods, I can find the payment method in that list
I guess I'm wondering if there's an easy way to get the individual payment method object attached to the subscription
It seems like I can't because the PM is attached to the customer
Ah yeah you want https://stripe.com/docs/api/payment_methods/customer in this case
Sounds like you are using https://stripe.com/docs/api/payment_methods/retrieve which is specifically for Treasury flows and not for Customer PaymentMethods
right
but that get all of a customer's payment methods request returns a list, correct?
is there a good way to know which Payment Method in that list will be used to pay for the subscription without having to make a request to get the subscription and then checking that the Payment Method ID attached to the subscription is in that list of a Customer's Payment Methods?
Not if you are setting the default at the Subscription level, no.
cool, no worries then! Thanks for answering all my questions: I really appreciate it! 