#mks_best-practices
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/1217011152312209418
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
I'd recommend checking the guide here for Subscription with multiple products: https://docs.stripe.com/billing/subscriptions/build-subscriptions
I do have multiple plan
one plan of 39$
another of 200$
each having 5 products which all are volume based
Yes, this is possible with the guide above. In Subscription creation, you can specify the prices/products to be included under items at Step 4: https://docs.stripe.com/billing/subscriptions/build-subscriptions?ui=elements#create-subscription
We want customer will land on our website
they will look at pricing table and based on that we will create subscription with new customer
Yes, this can be achieved with the guide above. Have you checked it?
The pricing table should be implemented by your own system, then submit the product/price information to Stripe to create a subscription
okay
is there any way I can create it with no code
The closest I can think of is to use pre-defined set of prices to create a subscription by using Buy Button: https://docs.stripe.com/payment-links/buy-button
If it's a mix and match of prices by customers themselves, the custom code integration will be required: https://docs.stripe.com/billing/subscriptions/build-subscriptions
Okay Thanks
Hey one more think to ask
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script async src="https://js.stripe.com/v3/pricing-table.js"></script> </head> <body> <h1>We offer plans that help any business!</h1> <!-- Paste your embed code script here. --> <stripe-pricing-table pricing-table-id="prctbl_1OtPLfDgqR5w8erL8ni8EK7Y" publishable-key="pk_test_51Nb6LdDgqR5w8erLtw7HnsfBEHWEN1nLQ26T69jxEIG1emyNu4orLDtQHlu3Ph1S1MuLLzcEzbCGLu3Rpe19icx400TZBqPrJ9"> </stripe-pricing-table> </body> </html>
above code is not working for me
giving me error like below what went wrong in this?
The code you shared is working fine for me
Okay , Do I need to deploy it or do something to work becuase on my local and also my college machine it is not working
Can you share your development website in public accessble URL with the error, so that we can take a look?
You need a HTTP server to embed pricing table:
The pricing table requires a website domain to render. To test the pricing table locally, run a local HTTP server to host your website’s index.html file over the localhost domain. To run a local HTTP server, use Python’s SimpleHTTPServer or the http-server npm module.
https://docs.stripe.com/payments/checkout/pricing-table#limitations:~:text=Testing the pricing,server npm module.