#lil-upcoming-default-payment-method
1 messages · Page 1 of 1 (latest)
lil-upcoming-default-payment-method
I also set the default_payment_method on the subscription any time a payment method is attached to the customer
@twilit thorn the Retrieve Upcoming Invoice API just renders and Invoice, so it's expected
when you set default_payment_method on a Subscription it will apply to future Invoices, yes, but those Invoices will still have default_payment_method: null
that's because none is set specifically on the Invoice, we just fallback to the Subscription's one if any
so on the Upcoming Invoice you likely want to use the Expand feature: https://stripe.com/docs/expand and get the whole Subscription object to check if that one has a default PaymentMethod (or store this in your databse which is way faster)
This makes sense, thank you @delicate fern
happy to help 🙂