#vell_2x

1 messages · Page 1 of 1 (latest)

tough boneBOT
whole fable
#

Hello

#

Hmmm how are you making these API requests exactly?

zenith elm
#

const account = await stripe.accounts.create({
type: 'express',
email: email,
business_type: 'company',
}

#

sending that variable

whole fable
#

Okay that looks like you are using our Node SDK. How are you initializing your stripe instance here?

#

That is generally where you would pass your API key

zenith elm
#

I have my stripe live key in the stripe variable. I should add my connect api to that?

#

Would that effect the other call i make using stripe?

whole fable
#

If your live key is being used to initialize stripe then that is all you should need.

#

So I'd double check that your code is saved

#

And try restarting your server if necessary

zenith elm
#

I do have a separate Connect accounts API key. I just dont know how to add it to my request

whole fable
#

Not sure what that means. If you are creating a Connected Account you would only be using your platform's API key. You would really never be using a Connected Accounts API key regardless, you would just use the Stripe Account header if you are making requests for that account: https://stripe.com/docs/connect/authentication

zenith elm
#

ok i will double check my secret

#

i am getting this error

whole fable
#

Yep so the issue is that your authentication isn't happening properly

#

So you'll need to check/debug that

tough boneBOT
zenith elm
#

can you send me the link to event handlers

#

My subscriptions are failing in my test mode

whole fable
#

Not sure what you mean exactly

#

You are looking for info on Billing Webhooks?

zenith elm
#

I guess so. I am still a little confused about the subscription webhooks. Like which event is triggered when a subscription is successfully renewed

whole fable
#

Well the above article talks about that. But you want to listen for customer.subscription.updated for renewals.