#matyas28

1 messages · Page 1 of 1 (latest)

stoic scaffoldBOT
rapid light
#

What's the Q?

knotty hazel
#

how we talk in private?

rapid light
#

We can't

#

What's the nature of your question?

knotty hazel
#

I have 2 stripe accounts and two identical apps, but one works or the other doesn't.

rapid light
#

What does doesn't work mean?

knotty hazel
#

i use api. and the one that doesn't work, invoiceitem $10, but invoice 0$. and it is paid automatically

#

same configuration, in the other app, it works perfectly

rapid light
#

Can you share the in_xxx ID

knotty hazel
#

yes

#

sorry, Where is this?

rapid light
#

I guess from the Dashboard, or your integration directly

knotty hazel
#

where? I can not find it

rapid light
knotty hazel
#

4703B9A4-0001

#

for example ?

#

it is correct? number invoice?

rapid light
#

I need the ID (in_xxx)

knotty hazel
#

i am developer

#

can i see this information ?

rapid light
#

Its right there on the invoice page

knotty hazel
#

aaaaaaaa

#

nice

#

in_1Lg2WOEEJtg5iijxBtI9Vnm4

#

thanks

rapid light
#

Ok, what am I looking for?

knotty hazel
#

in the code, i use stripe.InvoiceItem.create and all okay. create invoiceitem with 199$ , but a second step, stripe.Invoice.create, and invoice created with 0$

#

and stripe automatically pay invoice,

rapid light
#

It's because of this:

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.
https://stripe.com/docs/upgrades#2022-08-01

Keep track of changes and upgrades to the Stripe API.

#

Which changed in the API version released last month

#

And I guess your other account is on an older API version (2020-08-27)

knotty hazel
#

aaahhh

#

may be

#

okay, i will try.

rapid light
#

Just pass pending_invoice_items_behavior: 'include' when you create your invoices

#

That will be backwards compatible between both accounts

#

Or we can downgrade your newer account API version

knotty hazel
#

aahh okay, thanks you !! ))

rapid light
#

np!

knotty hazel
#

sorry, how can see my api version ?

rapid light
#

The account that created in_1Lg2WOEEJtg5iijxBtI9Vnm4 is on 2022-08-01 (latest)

#

I suspect your other account is on 2020-08-27

knotty hazel
#

and this id in_1LfLwRClWyjoxDRTS5can3tZ

#

whats api version ?

little gust
#

Hey! Taking over for my colleague. Let me catch up.

knotty hazel
little gust
knotty hazel
#

yes yes

little gust
knotty hazel
#

i want, in_1Lg2WOEEJtg5iijxBtI9Vnm4 with version 2020-08-27

#

we have another account with the API 2020-08-27, and we need to use the same API for both accounts

little gust
knotty hazel
#

ok, but we want to change the default value of the API version

#

is it possible? or we need to specify the version in all the requests

little gust
knotty hazel
#

thanks you !!