#Nir Lev Ari
1 messages · Page 1 of 1 (latest)
Hi,
I try to disable the update plain in billing portal
hi yes, there are settings to control what the user can do in the portal at https://dashboard.stripe.com/settings/billing/portal
but not for all time
there's a configuration API you can use to set it on a case-by-case basis
yes!
I have few problem
I am using the cli
my code:
const portalConfiguration = await this.stripe.billingPortal.configurations.create({
business_profile:{
headline:'Control and clarity your advanced portfolio',
privacy_policy_url:'https://www.notion.so/vyzer/Vyzer-s-Privacy-Policy-75421f1467b3410dbde2d27a13d94961',
terms_of_service_url:'https://www.notion.so/vyzer/Vyzer-s-Terms-and-Conditions-9ae7be5857e44dbe8d459faf93e1151d'
},
features:{
subscription_update:{
default_allowed_updates:'',
enabled:false,
products:[{
prices:['99'],
product:'prod_MHmvoXrfdPeZPC'
}]
}
}
})
why products are required?
and I got this error:
Error: Http Exception\n at Object.throwError (/Users/nirlevari/Desktop/web-app/backend/dist/common/errors/errors.utils.js:7:11)\n at PaymentsStripeApiService.createBillingPortalSession (/Users/nirlevari/Desktop/web-app/backend/dist/modules/payments/payments-stripe-api.service.js:97:28)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async PaymentsService.getBillingPortalUrl (/Users/nirlevari/Desktop/web-app/backend/dist/modules/payments/payments.service.js:131:25)
not sure! maybe its' an oversight in how that API was designed
there's not much information there, is there more context or a fuller stack trace? Do other API calls work?
first of all for disabled the update plain I need send false in subscription_update props?
as far as I know, yes. The code you shared would disable updating plans