#Baker-Checkout

1 messages ยท Page 1 of 1 (latest)

rugged crescent
#

Hi there, is this question about Checkout or Customer Billing Portal?

slender kindle
#

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.

rugged crescent
slender kindle
#

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.

rugged crescent
#

OK, so you want to build your own upsell logic and support different products

slender kindle
#

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

rugged crescent
#

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)
slender kindle
#

exactly, and on their page it shows all of them

rugged crescent
#

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?

slender kindle
#

well the page looks the same mine is just missing the options

#

is that just a Checkout design option and unrelated to the actual products?

rugged crescent
#

Hmm, billing.stripe.com page -> so your question is about customer billing portal then.

slender kindle
#

I don't know the root cause of my question, I noticed it on the billing portal checking my implementation

rugged crescent
#

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

slender kindle
#

oh interesting, that's awesome

rugged crescent
slender kindle
#

Thank you, that's exactly what it is

rugged crescent
#

Cool, happy to help ๐Ÿ™‚

slender kindle
#

because my products are different names it's not catching it, i need to update the line that opens the portal as well