#Baker-Checkout
1 messages ยท Page 1 of 1 (latest)
Kind of, I'm using a custom integration but I'm checking my work with the Checkout page. I'm just wondering what triggers a "plan" to be listed under the "available plans". I practiced using this example (https://github.com/vercel/nextjs-subscription-payments) which shows all of the different product options in the "Update Plan" section of the Checkout page listed under "Available plans". When I created my own products and prices, none of them show up.
The user & subscription that I'm checking the Checkout page from were created with Stripe Elements. The products and prices were created with Stripe CLI. I'm also using promo codes if that's relevant.
I think you are looking for upsell ? https://stripe.com/docs/payments/checkout/upsells
Enable customers to upgrade their subscription plan at checkout by using upsells.
Well that's what I thought it was at first, but in the example they're using different products and still getting 3 different products, not just prices, to show up in the upgrade section.
OK, so you want to build your own upsell logic and support different products
I'm more concerned that I'm doing something wrong in my code or product structure that's causing the difference in showing my plans available vs. the example I'm using
So here's my understanding on the example that you shared
- You can have 4 products (Hobby, Freelancer, Startup, Enterprise)
- You define two prices for each products (monthly and yearly)
exactly, and on their page it shows all of them
Well, the page design is entirely up to you. Is your question about if there's an existing Stripe element to provide such UI layout?
well the page looks the same mine is just missing the options
on the billing.stripe.com page
is that just a Checkout design option and unrelated to the actual products?
Hmm, billing.stripe.com page -> so your question is about customer billing portal then.
I don't know the root cause of my question, I noticed it on the billing portal checking my implementation
yup, so you are using customer billing portal, you can use the configuration object o customize the list of plans that you want to offer to your customers, see https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh interesting, that's awesome
https://stripe.com/docs/billing/subscriptions/integrating-customer-portal this is doc that's going to help you
Thank you, that's exactly what it is
Cool, happy to help ๐
because my products are different names it's not catching it, i need to update the line that opens the portal as well