#victorbjorklund - customer portal
1 messages · Page 1 of 1 (latest)
cus_LyHZ20mHyhxoCK
Thanks! This customer already has a premium plan active. So what where you expecting to see in the customer portal?
To be able to switch to standard plan. I want them to be able to switch between plans. Maybe I'm totally missunderstanding how it works.
How it looks like in the "preview". Something like that Im looking for
Hey, taking over here. Can you share the ID of the Customer Portal session?
Is it this one? bps_1LHqv3FhTCVgY1SVc3VqDT13
Taking a look!
Hmm, not immediately sure. Can you generate a new session and paste the ID here? I'll check the URL
{
"id": "bps_1LHr1wFhTCVgY1SVv6aZyUWP",
"object": "billing_portal.session",
"configuration": "bpc_1L48uLFhTCVgY1SVzrulfZFQ",
"created": 1656947864,
"customer": "cus_LyHZ20mHyhxoCK",
"livemode": false,
"locale": null,
"on_behalf_of": null,
"return_url": "https://example.com/account",
"url": "https://billing.stripe.com/session/test_YWNjdF8xS3prc1VGaFRDVmdZMVNWLF9MenFqRWdOa0E4OHFPUWNFdnZPc1hBMGs3RXZqWm5D0100zJlc79nB"
}
From stripe cli
Premium plan prod_LkC9HyCt53ZMYd with price price_1L2hlTFhTCVgY1SVenmOCbLu and standard plan prod_Lzmx5HX5Z3S9CW with price price_1LHnNLFhTCVgY1SVDHQjiYGg
Ok, figured it out
Seems it's because the tax behaviour set on the Price objects is different
price_1L2hlTFhTCVgY1SVenmOCbLu is exclusive.
price_1LHnNLFhTCVgY1SVDHQjiYGg is inclusive.
Ahaa. Makes sense.
Looking at the source code, that will prevent any updates
i.e. you can't switch from an exclusive to an inclusive price
Ill try to change it to they are the same.
Hope that resolves it! I will make sure the docs are updated to list this limitation
Thanks! Now it works 🙂 Yea, do that because im sure im not the only one making that mistake when "playing" around to test stuff (guess less common when closer to prod since you probably make sure it inclusive or exclusive then).