#anandkumar190

1 messages · Page 1 of 1 (latest)

lofty ravineBOT
tulip jackal
#

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

vale moon
#

test Mode working fine .

scarlet zephyr
#

Hi Orakaro, I am on the team with Anand. We are sending the data correctly on our side.

tulip jackal
#

Hi, what requests, in order, you send?

scarlet zephyr
#

Can you send how we can pull the request in stripe.

tulip jackal
#

you can find request log at https://dashboard.stripe.com/test/logs (Test mode) or https://dashboard.stripe.com/logs (Live mode)

scarlet zephyr
#

Checking

#

req_wqE8PdlYryy7df

tulip jackal
#

Yes, but what is the equivalent in Test mode?

scarlet zephyr
#

Can you rephrase?

tulip jackal
#

I mean, you mentioned it works fine in Test mode, so do you have a request in Test mode to compare?

scarlet zephyr
#

Yes, standby

#

req_fEOTb0CyVwFcU2

vale moon
#

but we are create invoice then create line item by using invoice id then finalizeInvoice .

tulip jackal
#

Okie, can you provide the Live mode request you created an Invoice Item?

scarlet zephyr
tulip jackal
#

Is there no request to create Invoice Item in Live mode? (right hand side)

scarlet zephyr
#

No. Because you create the invoice first.

vale moon
#

@tulip jackal what we will create first . line item or invoice ?

tulip jackal
#

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

scarlet zephyr
#

Thank you Orakaro

vale moon
#

Okay

vale moon
tulip jackal
#

Yeah got it. Let me quick try

vale moon
#

Sure

tulip jackal
#

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

scarlet zephyr
#

Wait, say again?

#

Would this mean we have to rebuild whole system?

#

Which way works with 2020?

tulip jackal
#

No, I mean the API version

scarlet zephyr
#

Okay, so what is the resolution, appologies, confused.

tulip jackal
#

You should change this to 2022-11-15

scarlet zephyr
#

How do I change that to 2022?

tulip jackal
#

Your developer will know 🙂

#

It's the configuration when you call the API

scarlet zephyr
#

Okay, so just configuration, no need to rebuild system?

tulip jackal
#

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

Keep track of changes and upgrades to the Stripe API.

#

In contrast to version < 2022-08-01, Invoice will requires some Invoice Items to be created

scarlet zephyr
#

Developer is reporting that both are same version

tulip jackal
#

Let them check the request log

scarlet zephyr
#

Hey Orakaro, engineering is reposrting that this will need to create a new stripe account?

tulip jackal
#

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

scarlet zephyr
#

In my stripe dashboard

tulip jackal
#

call them here, I can talk directly to them

scarlet zephyr
#

They are here

#

That is Anand

vale moon
#

@tulip jackal I'm here

tulip jackal
#

Hi

#

So have you figured it out why your request is sending 2020-08-27?

vale moon
#

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

scarlet zephyr
#

So all we need to do is click this button?

tulip jackal
#

When you made the request in Test mode, did you make under this same account?

#

Ok different one

scarlet zephyr
#

Different Account

tulip jackal
#

Okay so new account for Test mode and everything works fine. Now you want to run Live mode on the old account, correct?

scarlet zephyr
#

acct_1N4EIMJ6VreSaHea

#

Confirm

tulip jackal
#

That's the new account, right?

tulip jackal
scarlet zephyr
#

That is our test account and it was created in May.

scarlet zephyr
tulip jackal
#

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"

scarlet zephyr
#

Hi Orakaro, this is now working. Thank you so much.

tulip jackal
#

Glad to hear!