#_kevinx

1 messages · Page 1 of 1 (latest)

lofty hedgeBOT
#

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.

pale dew
#

what's the issue

reef dust
#

Hello there, good afternoon

#

here is what I did

  1. Change the version to latest on the dashboard
  2. 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

pale dew
#

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

reef dust
#

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?

pale dew
#

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

reef dust
#
 "@stripe/stripe-js": "^1.54.2",
 "stripe": "^12.18.0",

pale dew
#

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

reef dust
#

so regardless what stripe or stripe js version I installed, I can specify a newer version in my code for it to work?

pale dew
#

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

reef dust
#

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?

pale dew
#

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

reef dust
#

Got you, thanks, let me try and define the api version in stripe-js

#

based on our discussion, it should work

pale dew
#

Note that upgrading api version can cause unintended side effects

reef dust
#

oh, that I didn't know

pale dew
#

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

reef dust
#

thank you, I will read through the breaking changes

#

maybe just give up the 100% free coupon

pale dew
#

Up to you on if it's worth the effort

#

But if you decide to proceed, read the changelog and do thorough integration tests

reef dust
#

yeah, another quick question, I'm trying to confirm if an connect standard account is approved once the user submitted his/her info

pale dew
#

what's the question?

reef dust
#

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

pale dew
#

Those aren't events

#

You'd monitor account.updated

reef dust
#

yes of course

pale dew
#

And look at charges_enabled and payouts_enabled on the object received

reef dust
#

do I have to do both or just one is enough

pale dew
#

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

reef dust
#

Great. Thank you very much as always and have a great day there!

pale dew
#

Same to you

reef dust
#

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

pale dew
#

We have a minimum charge of $0.50

#

So it wouldn't work

reef dust
pale dew
#

Either needs to be $0 or >= 0.50

reef dust
#

oh, in the older version api, how to create free charges, is there anyway that behaves like a coupon code?

pale dew
#

You can't

reef dust
#

anyway, if it's too much, I will just create a coupon to charge $0.50 then

#

ok, thanks

pale dew
#

You need newer api version for $0 checkout sessions

#

They won't create a charge object

#

Charges have to always be > 0.50

#

The checkout session just allows you to complete checkout with $0 but no charge is ever created for 0