#Nir Lev Ari

1 messages · Page 1 of 1 (latest)

compact voidBOT
warped cypress
#

Hi,
I try to disable the update plain in billing portal

clear swallow
warped cypress
#

but not for all time

clear swallow
#

there's a configuration API you can use to set it on a case-by-case basis

warped cypress
#

yes I know

clear swallow
#

I see, so did you try that and run into a problem?

warped cypress
#

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'
}]
}
}
})

Notion

A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team

Notion

A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team

#

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)

clear swallow
clear swallow
warped cypress
#

first of all for disabled the update plain I need send false in subscription_update props?

clear swallow
#

as far as I know, yes. The code you shared would disable updating plans

warped cypress
#

cool

#

if I am using subscription cancel (not update)
it's working...

#

I believe something wrong with my parmas

#

@clear swallow You still here?

#

subscription update disabled the cancel plain button

clear swallow
#

I'm here yes

#

I'm not sure what your current question is, what can I help with?