#jco_code

1 messages ¡ Page 1 of 1 (latest)

twilit coyoteBOT
#

👋 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/1230159815393673277

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

compact ginkgoBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

atomic anchor
#
                const checkout = await stripe.checkout.sessions.create({
            mode: "subscription",
            customer: customer.id,
            customer_update: {
                name: "auto",
            },
            line_items: [
                {
                    price,
                    quantity: 1,
                },
            ],
            subscription_data: {
                metadata: {
                    site: "cleo",
                    user: String(id),
                },
            },
            phone_number_collection: {
                enabled: false,
            },
            success_url: "https://cleo-peach.vercel.app/premium/success",
            cancel_url: "https://cleo-peach.vercel.app/premium/cancel",
        });

        return checkout.url;
                
compact ginkgoBOT
bleak creek
#

Hello, I'm not sure if Checkout can display more info on its line items than just the description. Are you following a doc that demonstrates this? Or is this just a general ask if this is possible?

atomic anchor
#

General ask, as the main way to access the product information is the checkout, from a discord command

#

as premium is mainly for discord bot features.

#

If needed I can just adjust the commands to include a features command that lists it by retrieving the subscription features element, but I was hoping it would also be shown in checkout?

#

Unless the pricing table has been updated to allow me to include things like metadata on purchases and a customer id, i dont think another method is feasible in this current stage. But I cannot see how to use this with React components in TSX.

bleak creek
#

Discord commands and bots aren't a thing we can really advise on here. We can consult on the Stirpe API and taking payment part, but the leadup to the payment and the provisioning of the service after are beyond our knowledge and support

#

I can put in a feature request but for now I don't think Checkout supports this at the moment