#Monkey
1 messages · Page 1 of 1 (latest)
Hi there, the easier way to implement it is to use pricing table https://stripe.com/docs/payments/checkout/pricing-table
Hi there!
The pricing table is limited with it's design right?
It also seems that the pricing table doesn't support multiple add on products to the available plans
The limitations are explained here https://stripe.com/docs/payments/checkout/pricing-table#limitations
It's not a good fit for me, since I'd like to have a custom design
And few other limitations
What can I use instead?
It looks like you need to implement a pricing table by yourself.
Yes, I got that done already using Next.JS
How do I create the checkout?
Note: The checkout should support both recurring and non-recurring products.
You can simply use CheckoutSession API. When creating a checkout session for non-recurring payment products, you should set its mode to payment, and subscription for recurring payments. You can find the complete integration guides in the following links.
https://stripe.com/docs/payments/accept-a-payment?platform=web
https://stripe.com/docs/billing/quickstart
Using multiple line items?
It's up to you. If you want you customer to checkout multiple product/price in one checkout session, you can include them in the line_items param
So I'll include a mix of recurring and one-time products?
Can you please elaborate more?
How will the flow will look like?
User selected 3 products → API 1 → API 2 and etc.
Yes, and you need to set mode to subscription if you want to mix.
The details are explained in the API reference
https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you!