#matyas28
1 messages · Page 1 of 1 (latest)
What's the Q?
how we talk in private?
I have 2 stripe accounts and two identical apps, but one works or the other doesn't.
What does doesn't work mean?
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
Can you share the in_xxx ID
I guess from the Dashboard, or your integration directly
where? I can not find it
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I need the ID (in_xxx)
Ok, what am I looking for?
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,
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
Which changed in the API version released last month
And I guess your other account is on an older API version (2020-08-27)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
aahh okay, thanks you !! ))
np!
sorry, how can see my api version ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The account that created in_1Lg2WOEEJtg5iijxBtI9Vnm4 is on 2022-08-01 (latest)
I suspect your other account is on 2020-08-27
Hey! Taking over for my colleague. Let me catch up.
can you switch the version of the api downgrade to 2020-03-02
as my colleague mentioned to you, you can find the API version that the account is using from your dashboard:
https://dashboard.stripe.com/developers
For that invoice, the default used version is 2020-08-27
yes yes
Why you want do downgrade you API ?
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
I don't understand your question, that invoice was already created, maybe you should create a new one.
In order to specify a specific API version, you can add a header on your requests Stripe-Version: 2020-08-27
https://stripe.com/docs/api/versioning
Or following this link:
https://site-admin.stripe.com/docs/building-plugins#set-api-version
if you are using Stripe SDK
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
Sorry for my late reply, You can downgrade you API version, but you need to contact Support for that:
https://support.stripe.com/contact
thanks you !!