#brad_01495
1 messages · Page 1 of 1 (latest)
Hi 👋
This could be due to a restriction with the Customer Portal
You will want to look at the limitations we list here: https://stripe.com/docs/customer-management#customer-portal-limitations
I even have it showing on the preview, but as soon as I go into the portal, it won't let me see my options
Wait..do the customers already have an existing Subscription?
No
I don't even know how to do that
This is me trying to integrate it into my site
When I create a new account, I get assigned a "cus_id"
Okay yeah this can be confusing
then I run a function which sends me an authorized link which sends me to this portal with my credentials already associated with it
But the Customer Portal does not allow your Customers to create Subscriptions
But it doesn't load the products
Only edit them
To create a Subscription you need to use the Checkout page via a Checkout Session or Payment Link
Start here
Hmmm.
COOL.
I should have joined this discord a while ago. I've probably blown through 40 hours on this project
Is this an approach that will pre-authenticate them so they don't have to, say "log in" or something
What approach?
Most of the approches I've seen with stripe include the user having to log in or something. It was a struggle to create a customer portal where they didn't have to authenticate before accessing the portal
I'm still not clear on what approach you are referring to
I want them to be able to click "start checkout" and for them to be taken to a checkout session where they don't have to log in to stripe. Where, because they're authenticated on my site, they don't have to then log in again to stripe.
Case in popint, right here it is asking for "email"
Okay so they need to be Customer objects in Stripe as well. If you have already saved this to your site's authentication system then you can use the Customer ID when creating the Checkout Session
That should have been pre-filled
Did you provide the customer_email when you create the Checkout Session?
I haven't built anything yet
Just want to make sure this is the correct page/resource
Okay so when you create a Checkout Session to redirect your users to, you include the customer_email parameter: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_email
But if they already exist as a Stripe Customer then the best option is to provide the Customer ID in the customer parameter.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
Great thanks!