#pablo_unexpected

1 messages ¡ Page 1 of 1 (latest)

somber wigeonBOT
torpid geyserBOT
#

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.

somber wigeonBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1251233325314609154

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

pale loom
twilit drift
#

sure

#

invoice items: req_Lqf7C4hVggjeFl
invoice:
req_HkWv7k2U62OGLL
invoice pay:
req_FxaJ1C6ptPXguH

pale loom
#

Hmmm... I wonder if it happened too quickly. There was less than a second between the request to create the Invoice Item and the Invoice's creation request

#

Let me dig a bit and circle back

twilit drift
#

sure

#

If this is a thing it should be better to change my integration and provide the invoice in the invoice item creation

pale loom
#

Ah, okay I figured it out (with a bit of help).

Quick disclaimer: The better newer flow is now

  1. Create an Invoice (empty, no lines)
  2. Create an InvoiceItem and pass invoice: 'in_123'
  3. Go to #2 until all lines are created

With that being said, if this is not feasible for you, then you need to pass the pending_invoice_items_behavior parameter set to include: https://docs.stripe.com/api/invoices/create#create_invoice-pending_invoice_items_behavior

Which makes sure the Invoice picks up any pending invoice Items

twilit drift
#

oh, thats new right?

#

i was using an older version and there was no need of that

#

thanks for your help

pale loom
twilit drift
#

thanks for your help, because im coming from a really old version i might find another issues like this one

pale loom
#

Sure thing!