#fobor10362-billing-portal
1 messages · Page 1 of 1 (latest)
heya @silk plover, could you elaborate what you mean by outstanding balance in this case?
a customer has open invoices that are unpaid
i would say you can prevent them from cancelling but you would need to implement the logic on your application. You would want to check if the user has any "outstanding balance", if they do, do not enable subscription cancellation on the portal configuration : https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_cancel-enabled
hmm
seems troublesome though
I don't want to completely block them from accessing portal if they have an outstanding balance
ok but then i would need to create another portal for them to cancel subscriptions?
so 1 portal to prevent cancels and another portal to allow cancels
yep
if outstanding balance then view portal but disable cancels. If no outstanding balance then view portal plus allow cancels
^pseudocode
yup, that's what i had in mind
thanks i have a bunch to think about now