#_kevinx
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
what's the issue
Hello there, good afternoon
here is what I did
- Change the version to latest on the dashboard
- Tried to update the NPM packages in my code base, failed, seems stuck at an older version
I used npm install stripe, nothing happened
still the older version there
api version isn't the same thing as your client library version
what is your end goal
what are you really trying to do here
I'm trying to setup a coupon that allow free of charges, but seems that kind of coupon is only allowed in a newer version
so I tried to update the api to latest including @stripe/stripe-js
I followed the doc, did a few steps, but it refused to update
I used brew install btw
should I use brew install again to get the latest version?
again, api version isn't the same thing as your stripe library version
You should be able to set the api version in the code
"@stripe/stripe-js": "^1.54.2",
"stripe": "^12.18.0",
If you need to use something on a different api version just set the api version in your client
stripe-js version isn't the same as api version
For node specifically: https://stripe.com/docs/libraries/set-version?lang=node#setting-the-api-version
so regardless what stripe or stripe js version I installed, I can specify a newer version in my code for it to work?
yeah
the issue is you are on an earlier api version that doesn't support $0 checkout sessions
so you just need to use a newer api version
you don't NEED to upgrade you client version if you don't want to
up to you
the latest version is 14 and I'm stuck at 12
so if that doesn't matter, as long as I can define the version in the code, I probably don't have to update right?
they're 2 different concepts entirely
stripe api version is not the same as stripe-js version
You can use different api versions on any stripe-js install
Got you, thanks, let me try and define the api version in stripe-js
based on our discussion, it should work
Note that upgrading api version can cause unintended side effects
oh, that I didn't know
Recommend thoroughly testing your code before deploying any change
Yeah different api versions introduce different behavior
Sometimes this affects your integration
It's on you to read the changelog
Please read our docs on this: https://stripe.com/docs/upgrades
thank you, I will read through the breaking changes
maybe just give up the 100% free coupon
Up to you on if it's worth the effort
But if you decide to proceed, read the changelog and do thorough integration tests
yeah, another quick question, I'm trying to confirm if an connect standard account is approved once the user submitted his/her info
what's the question?
I was told to monitor account.charges_enabled and account.payouts_enabled
which one is triggered once the account is approved by stripe and how long does it normally take
yes of course
And look at charges_enabled and payouts_enabled on the object received
do I have to do both or just one is enough
Look at both fields
You should also probably monitor the requirements hash
That'll clue you in on if there's any specific info your connect accounts need to provide
how long does it normally take
no idea
that varies
Great. Thank you very much as always and have a great day there!
Same to you
back to the 100% free coupon issue, what if the user is only charged $0.10, like 10 cents, how does stripe deal with this kind transactions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Either needs to be $0 or >= 0.50
oh, in the older version api, how to create free charges, is there anyway that behaves like a coupon code?
You can't