#jabza

1 messages · Page 1 of 1 (latest)

shrewd skyBOT
split sedge
#

Hi there

#

Billing Portal is enabled by default, yes. But it would just have the default config. You will want to pass a specific config if you want something different, or have your users set up their default config.

placid onyx
#

(this was in Test mode, if that has an effect)

split sedge
#

Hmm do you have a request ID?

#

For that error I mean

#

My understanding is it should just work

placid onyx
#

StripeInvalidRequestError: You can’t create a portal session in test mode until you save your customer portal settings in test mode at https://dashboard.stripe.com/test/settings/billing/portal.

#

req_oQ1Y5RKM2WWPbC

#

(I fixed the error by manually going into the Connected account and clicking 'create billing portal link') but ideally I wouldn't want to do that everytime someone signs up...

#

if that makes sense

split sedge
#

Thanks, taking a look

placid onyx
#

thanks 🙂

split sedge
#

Then it should work without enabling the feature in the Dashboard to use the default

placid onyx
#

ahh gotchya

#

hmm

#

so my use case as a Platform is

#

the Connected Account's subscribers go to manage their subscription - I use stripe.billingPortal.sessions.create (using the Connected Account's acct_id) - to get the customer a portal URL

#

so it sounds like if I pass in the config, it shouldn't error on the first try anymore?

split sedge
#

Yep correct

#

I'd test it to make sure