#anandkumar190
1 messages · Page 1 of 1 (latest)
Invoice needs a some Invoice Items to put on
You should compare side to side to your Test mode, which requests has you made ande what results does it produce
test Mode working fine .
Hi Orakaro, I am on the team with Anand. We are sending the data correctly on our side.
Hi, what requests, in order, you send?
Can you send how we can pull the request in stripe.
you can find request log at https://dashboard.stripe.com/test/logs (Test mode) or https://dashboard.stripe.com/logs (Live mode)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes, but what is the equivalent in Test mode?
Can you rephrase?
I mean, you mentioned it works fine in Test mode, so do you have a request in Test mode to compare?
on the live showing "invoice_no_customer_line_items - customer".
but we are create invoice then create line item by using invoice id then finalizeInvoice .
Okie, can you provide the Live mode request you created an Invoice Item?
Is there no request to create Invoice Item in Live mode? (right hand side)
No. Because you create the invoice first.
@tulip jackal what we will create first . line item or invoice ?
There are both flow: creating Invoice Items first or creating the Invoice first, then creating its Invoice Items. You flow is the latter one and it should also work. Hold on....
Let me look closer
Thank you Orakaro
Okay
But here Error come if we are creating first invoice then create. line items .
Yeah got it. Let me quick try
Sure
Okie so your Test mode API version is 2022, when Live mode is 2020
If you use latest API version on Live mode, you would be able to do that
Wait, say again?
Would this mean we have to rebuild whole system?
Which way works with 2020?
No, I mean the API version
Okay, so what is the resolution, appologies, confused.
https://dashboard.stripe.com/logs/req_wqE8PdlYryy7df Live mode request use 2020-08-27
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You should change this to 2022-11-15
As the Test mode request https://dashboard.stripe.com/test/logs/req_fEOTb0CyVwFcU2
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
How do I change that to 2022?
Okay, so just configuration, no need to rebuild system?
Yep
Should be straighforward
When you talk to your developers, you can show them https://stripe.com/docs/upgrades#2022-08-01
The pending_invoice_items_behavior parameter on create Invoice no longer supports the include_and_require value. When the parameter is omitted the default value of pending_invoice_items_behavior is now exclude.
This means for version of 2022-08-01 and newer, by default when you create an Invoice, it will be able to create an empty draft, then you can add Invoice Items into it
In contrast to version < 2022-08-01, Invoice will requires some Invoice Items to be created
Developer is reporting that both are same version
Let them check the request log
https://dashboard.stripe.com/logs/req_wqE8PdlYryy7df this link it says 2020-08-27
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hey Orakaro, engineering is reposrting that this will need to create a new stripe account?
No. They can just change the API version in Dashboard
Well I see your account is already on the latest API version. Their code may have incorrectly set the old version of 2020-08-27 somewhere
In my stripe dashboard
call them here, I can talk directly to them
@tulip jackal I'm here
Hi
So have you figured it out why your request is sending 2020-08-27?
Possibility that you are doing something like this https://stripe.com/docs/libraries/set-version#setting-the-api-version
we have old accound and uesed last three Years
but Now we create new account for testing
due to this resion old on live and new for testing .
make sense @tulip jackal
When you made the request in Test mode, did you make under this same account?
Ok different one
Different Account
Okay so new account for Test mode and everything works fine. Now you want to run Live mode on the old account, correct?
That's the new account, right?
And this is old account in Live mode
That is our test account and it was created in May.
Yes. Was created in 2020.
So yes basically click that button will get your old account, from 2020, to the newest version. However if your old account has some other running flow that are not tested in your new account, it could break because of version upgrade
If you are confident that everything you needed has been tested in the new, 2022 account, then it's peaceful to just push the button
When you’re confident that your code can handle the latest API version, click the Upgrade version button in your Dashboard. This switches the version used by API calls that don’t have the Stripe-Version header and also switches the version used to render objects sent to your webhooks
The point here is "When you''re confident"
Hi Orakaro, this is now working. Thank you so much.
Glad to hear!