#rgrau_docs

1 messages ยท Page 1 of 1 (latest)

smoky zenithBOT
#

๐Ÿ‘‹ 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/1488804264750088242

๐Ÿ“ 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.

jovial delta
#

Hi there, looks like sub_1TH3UjK2yjOku12MlgWLdsrM wasn't created through Checkout. Do you have a subscription created by checkout with pending_invoice_item_interval parameter ?

sly cypress
#

right, the sub wasn't created thru checkout, but my point is about what is implied in that doc page, that pending_invoice_item_interval (which can be added in a regular subscription creation/update) with metered-usage. I linked to that sub only to make it easy to search for a discord thread that has all the context. (sorry if it's confusing)

smoky zenithBOT
jovial delta
#

Ok, I'll need some time to test this out.

scarlet orchid
#

hi! I'm taking over this thread.

sly cypress
#

๐Ÿ‘‹

scarlet orchid
#

I'll have to test this to double check. but it's possible it's just not working with meters and the documentatino is not accurate.
in this case, does having a yearly and a monthly price on the same subscription fix your issue?

sly cypress
#

we're still working on it, no conclusion yet (thx for asking!), my idea here was to hook on that doc page and , if the doc is wrong, I know the mixed-periods is my only way out...

scarlet orchid
#

got it! so give me a few minutes to test this flow on my end.

#

just to make sure I understood this correctly, is this what I should test?

  1. create a metered yearly subscription using Checkout Session and pending_invoice_item_interval: month
  2. add some meter event to that subscription
  3. advance time by one month
  4. I should see a new invoice that includes the meter events I sent
sly cypress
#

yep! (wrt 1, we don't use the checkout session ourselves (we use just regular sub creation), but if it works for you, it will work for me too)

scarlet orchid
#

I just tested this, and no new invoice were created. so I'll report this issue internally. thanks for flagging!

sly cypress
#

yay! we'll be ๐Ÿ‘€ it if it's considered a documentation inaccuracy, or it's considered a bug, and stripe will trigger new invoice for those metered-prices. ๐Ÿคž

smoky zenithBOT
untold zodiac
#

I think overall that doc is inaccurate โ€“ metered usage never creates pending invoice items

sly cypress
#

ohh... ok. at least it's clear now. thanks everyone!