#wanna-subscriptions

1 messages · Page 1 of 1 (latest)

pulsar meadow
#

do you have the subscription ID sub_xxx where this happened?

native whale
#

hi!

#

actually, the default payment method was via the api

#

the sub is sub_1Ku1LyIwEQ1cVQGWC3OAI70p

#

stripe.subscriptions.create({
customer: customer.id,
payment_behavior: 'default_incomplete',
default_payment_method: req.body.paymentMethodId,
})

#

i've set the default payment method this way, in the subscription creation, and the first payment was successful, but the last payment was due yesterday and the payment intent is in state requires_payment_method

pulsar meadow
#

hm, that is indeed a bit strange

#

not sure what's going on with this one yet, still looking

#

oh, I think the pm_xxx that is the default_payment_method for the customer was removed

native whale
#

ok no problem, its not urgent, just to know because we have other subscription expiring and we want to avoid any other issue

native whale
pulsar meadow
#

the subscription is still set to default_payment_method:pm_1KrrcOIwEQ1cVQGWSN8RE9Pf but that PaymentMethod is no longer attached to the customer, so it can't be charged. You'd need to update the subscription's default_payment_method to the new pm_xxx you added

native whale
#

okok

#

thank you for the help!

#

sorry to bother, just another question, if i delete the subscription, the next retryal of the payment will be deleted too?

pulsar meadow
#

I think so, but if you want to be sure, better to explicitly void the open invoice too

plucky heath
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!