#vinh9281

1 messages ยท Page 1 of 1 (latest)

bronze orioleBOT
magic gust
#

Hi there ๐Ÿ‘‹ I'm not quite sure I'm grasping the question, but default_payment_method on the Subscription object will be null unless you explicitly set it or use a flow that automatically causes it to be set.

muted gull
#

Hi Toby! How are you? I set the flow that automatically it be set on subscription:

payment_settings: {   save_default_payment_method: 'on_subscription' }

I'm wondering when will it be null if on the payment processing they will always update the decfault payment method to that current payment? Trying to see when this edge case happens

bronze orioleBOT
magic gust
#

It shouldn't be null after payment processing if you're using that setting as far I know. Do you have a case where you saw that behavior that you can share with us?

muted gull
#

Whelp... we turned that flag on 11 months ago; not sure why there some null data we are recieving; let me get you a some sub ids

muted gull
#

Looks like they are for incomplete subscriptions from what I see

#

Are incomplete subscriptions the same as payment intent?

tall oyster
#

I'm stepping in for my teammate

#

Are incomplete subscriptions the same as payment intent?
This doesn't really make sense. A subscription will be in an incomplete state if the first payment has failed

muted gull
#

okay here is an active one where there is no default: sub_1LP8CuHU1yruTVu8IKWqdCPa

#

heres another one without a payment method: sub_1MZOxxHU1yruTVu8kec5snNK

tall oyster
#

Thanks, give me a few minutes please

muted gull
#

๐Ÿ‘

tall oyster
#

Sorry for the delay! Do you have more recent examples? The reason I ask is because I can no longer pull up creation logs for sub_1LP8CuHU1yruTVu8IKWqdCPa and sub_1MZOxxHU1yruTVu8kec5snNK was created via Checkout

#

I was hoping to see a subscription where passing the below did not result in setting a default payment method on the Subscription:
payment_settings: { save_default_payment_method: 'on_subscription' }

frail drift
#

So with these subscriptions Vinh sent, we still see invoices being created monthly. How does Stripe decide what payment method to use for these invoices if there is no payment method on the subscription? Does it use the customer's default payment method? Is it possible that even the customer wouldn't have a default payment method? What payment method would be used then?

tall oyster
#

Good question! If default_payment_method is null on the Subscription, we look to the Subscription's default_source. If default_source is null too, we look to the customer's invoice_settings.default_payment_method