#voidy_api

1 messages ¡ Page 1 of 1 (latest)

paper mapleBOT
#

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

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

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.

flint sinew
#

I have created the price with custom amount for every checkout sessions.

#

The amount can be custom, that is why i create the price everytime i create a checkout session.

timber compass
#

You would need to lookup if you have a price for the amount you're wanting to use, then pass that Price ID into your Checkout Session creation call instead of using price_data to create a new Price

flint sinew
#

oh alright,
i can add the amount as lookup value, and fetch the existing price if any

timber compass
#

Yup, exactly

flint sinew
#

thanks buddy

timber compass
#

Sure thing!

flint sinew
#

One question,
When I try to add two subscription items when creating a subscription.

Subscription 1 for 1000$ per month and Subscription 2 for 2000$ per month, both are recurring flat rate.

Only the subscription 1 is attached as the subscription item, the 2nd one is not attached to the subscription.

although the invoice is for 3000$

#

these are from the same subscription

timber compass
#

Can you send the code that create the Subscription with 2 subscription items?

flint sinew
#

I am doing it manually through the dashboard, i will send the req_id if that can be useful, just a sec

#

req_AYS0c7BnT4d6C8

timber compass
#

It looks like you have added an Invoice Item and a Subscription Item. The Invoice Item is a one-off item (e.g. not recurring) so it won't show up on the Subscription after the subsequent invoice

flint sinew