#eirikbakke
1 messages · Page 1 of 1 (latest)
hello! not via the Customer Portal, but you can do it via the API : https://stripe.com/docs/api/payment_methods/detach
OK, so I assume if I do that via the API, it will have the same effect as when I tried it via the dashboard. I tried that--and in that case, the user was still able to Renew the plan, without having a payment method on file!
In that case the user ended up with an unpaid invoice. (All of this in test mode.)
Is there a way to avoid that situation?
i'm not sure i understand the requirements here - you mentioned that you wanted the customer to remove their payment method immediately after cancelling their subscription. I'm a bit confused what you mean by
In that case the user ended up with an unpaid invoice. (All of this in test mode.)
So, the user always has access to the Customer Portal (which is a great UI, by the way)
And I'd like the user to be able to Cancel their subscription and delete all their saved payment methods
But they should still be able to access the Customer Portal, e.g. to view past invoices, or to restart the subscription ("Renew" button)
The problem is, the Renew button allows the user to restart their canceled subscription even if there is no payment method on file.
Is this a bug in the Customer Portal?
it's not really a bug - the Customer Portal does prevent you from removing the payment method from the Subscription if it's still active. However, you're looking to remove the payment method before the subscription ends and want to use a workaround, and at the same time, want the customer to provide a new payment method if the previous one was removed - this is more of an edge case which hasn't been taken into account yet
if you have the setting turned on to send the customer an email for a failed payment, that might be one way of recovery
Sure, but it would be a lot easier if the renew option was just not available unless a payment method was on file.
So perhaps this is two feature requests:
(1) Allow users to remove their last payment method when subscription is set to cancel and
(2) Don't allow subscription to Renew in unless a payment method is set
that makes sense, i'll pass on the feedback