#akintola_code

1 messages ¡ Page 1 of 1 (latest)

lofty orbitBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1243519133874917516

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

proven oracle
#

hi! what's the customer ID cus_xxx where this happens?

heavy bear
#

Hi @proven oracle . I got it from stripe and saved it in our database

proven oracle
#

sorry, I meant, can you post it here so I can have a look?

heavy bear
#

I thought this is not allowed

proven oracle
#

IDs of objects are fine to share

heavy bear
#

cus_PMD***********

#

It's not only for one customer but for all our customers

proven oracle
#

I just need an example of one where you have this problem(the 'switch feature' not showing up) so I can have a look into why that might be happening.

heavy bear
#

@proven oracle I don't know how to tell you but we're also not allowed as dev to disclose such data please

#

Is there any way for you to help?

proven oracle
#

I can't help without the ID no. All I can tell you is it's likely to be one of the reasons from https://docs.stripe.com/customer-management#customer-portal-limitations , or it's an issue with how you've configured the settings for the portal and which(if any) Prices you marked as being eligible, but I can't say for sure without looking at your actual example/account.

heavy bear
#

@proven oracle I successfully got a customer example for you: cus_PMDHeFXu9TPjGx

proven oracle
#

this customer does not have any active Subscriptions so it's expected there's nothing for them to manage or switch in the portal

heavy bear
#

Let me add a asubcription

#

Check again please

proven oracle
#

you didn't touch that existing one.

#

so if you now create + visit a BillingPortal session for that new Customer, what do you see/are there any problems?

heavy bear
#

Thanks @proven oracle

#

I can see it now

#

It means that for subscription I was creating a new customer every time

proven oracle
heavy bear
#

I'm using stripe-pricing-table

#

What's parameter should I use to pass the customer id

#

Please?

proven oracle
lofty orbitBOT
heavy bear
#

@proven oracle Thanks but it looks like the StripeClient do not have customerSessions propery

#

`Undefined property: Stripe\Service\CoreServiceFactory::$customerSessions

`

#

I tried this: $stripe->customerSessions->create

#

@modest mortar Any thoughts?

modest mortar
#

Hey! Taking over for my colleague. Let me catch up.

heavy bear
#

Alright

modest mortar
heavy bear
#

new \Stripe\StripeClient(config('stripe.secret'))

modest mortar
#

How are you including Stripe module ?

#

Are you using composer ?

heavy bear
#

Other api interafaces are working

#

Like customers or checkout

#

Yes

#

I'm using composer

#

Version of the client: 9

modest mortar
#

Ah you are using a very old SDK

#

I invite you to migrate to a newer/latest version of the SDK.

lofty orbitBOT