#wery_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/1437939028463714477
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is what the user sees in Stripe checkout
Hi there,
I have a couple of questions just to clarify.
What payment UI are you using? Checkout?
Are you expecting different names for the Subscription Items, because it only refers to the product name.
Yeah, I'm using Stripe's checkout link:
const session = await stripe.checkout.sessions.create({
mode: "subscription",
line_items: [
{
price: "x",
quantity: 1,
},
{
price: "x",
},
{
price: "x",
},
],
success_url:
"",
cancel_url: "",
metadata: {
organizationId: user.organizationId,
purchasedBy: user.id,
referenceId: user.organizationId,
},
subscription_data: {
metadata: {
organizationId: user.organizationId,
purchasedBy: user.id,
},
},
});
I'm expecting different names for the subscription items, because on the left of the checkout page (where you can see the pricing), it looks to the user like the same subscription three times, but with different pricing.
It basically is the same subscription item(product) with three different pricings. With that the same name for the subscription item will appear. You would need to create individual products for each price if you want to display different subscription item "names" on checkout
Okay, but is creating a pay-as-you-go plan with a base price using that multiple pricing approach the correct way to set up billing of this type?
If you have a flat fee + usage-based pricing, then your approach is totally valid.
Great, thank you so much
No worries. Always happy to help (where we can)