#daniel_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ 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/1358697337215516852
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I receive an email with a link to the billing page and the last created customer is shown.
Can you share the Checkout Session Id cs_xxx? or its creation request req_xxx
cs_test_a1tSPWLy5mGQgV3qod6e4pwSI9CnvocboDBWYH44DTJYMrV060JmRgOXWA
Okie then
I receive an email with a link to the billing page and the last created customer is shown.
how do you differentiate the last customer in your email?
Assuming cus_S5JE1kZVuZ5Pyk is your first Customer, which is used to create that Checkout Session
I am using the stripe-pricing-table and create a customer-session-client-secret for the customer with stripe_id cus_S5JE1kZVuZ5Pyk. I would expect that this stripe_id is somehow part of the portal link and forwarded to the portal.
on this screen the correct customer is used.
Okie what happen if you click to "Log in to customer portal"? If you change something there, do you see it is reflected on cus_S5JE1kZVuZ5Pyk ?
i can see the stripe_id of the other customer with this email address. and i can see changes to the second customer after updating the subscription.
Thanks, can you post here the other customer id in text? cus_xxx
cus_S5JGZD5jyuXf5a
And when you create this Checkout Session, both cus_S5JE1kZVuZ5Pyk and cus_S5JGZD5jyuXf5a already has a Subscription, correct?
sub_1RB8cpDzQuiKhERcds08e9YH and sub_1RB8gjDzQuiKhERchxEOCT5a respectively
correct
Okie I think I know what this is
what did i do wrong?
hi, thank you
it seems to be related to this, but not sure if that's expected or not when using Checkout Session.
https://docs.stripe.com/customer-management/activate-no-code-customer-portal#:~:text=If multiple customers have the same email address%2C Stripe selects the most recently created customer that has both that email and an active subscription.
please give me a few minutes to investigate
Yes, I assume that the decision for the link was made by Stripe and I will accept it. But whenever it is possible to specify the stripe_id of a customer it should be taken into account.
I agree that the current behavior is not ideal. I'll flag that inernally to see if that can be improved.