#wanna-subscriptions
1 messages · Page 1 of 1 (latest)
hi! usually this is because you didn't set either https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method or set https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method after the first payment
do you have the subscription ID sub_xxx where this happened?
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
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
ok no problem, its not urgent, just to know because we have other subscription expiring and we want to avoid any other issue
you mean it was detached from the customer or actually deleted?
I mean you detached it from the customer on this API request : https://dashboard.stripe.com/logs/req_yTu6rCeoKiyDoB
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
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?
I think so, but if you want to be sure, better to explicitly void the open invoice too
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!