#sman_api

1 messages ¡ Page 1 of 1 (latest)

deft graniteBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291051419452833874

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

past whale
#

Hello

#

Can you tell me more about what you are trying to do?

#

And do you have a request ID for the error you are seeing?

crimson eagle
#

I am trying to replace the sk_live key with the rk_live key. Stripe is requiring me to change this before Oct29 when the sk_live keys will stop working.I don't see a request ID. I am trying to update the API key.

past whale
#

Well the error indicates that your Restricted Key does not have the proper permissions for what you are trying to do with that key

#

So where in your code is the error coming from exactly?

crimson eagle
#

Yes, this is the permission it says is missing. Having the 'rak_accounts_kyc_basic_read' permission would allow this request to continue.

past whale
#

Correct.

#

Did you create this restricted key via the Dashboard?

#

Also what does:

Stripe is requiring me to change this before Oct29 when the sk_live keys will stop working.
mean exactly?

crimson eagle
#

I used the WHMCS app in the Stripe Marketplace.

past whale
#

What is WHMCS? Is that a third-party?

crimson eagle
past whale
#

Ah okay thanks, yeah we don't support plugins or connectors here.

#

We can only help with folks directly integrating the API.

#

If you are having an issue with a plugin then you'll want to reach out to them for help.

#

Otherwise I'd recommend checking the permission that your key has

crimson eagle
#

If I were to create the API manually, as if I am connecting directly, would that resolve this, at least until the plugin is fixed?

#

The API key.

past whale
#

I'm not sure what that means really, sorry.

#

And make sure it has the necessary permissions

crimson eagle
#

Stripe has a button to create a restricted key, where you set the permissions manually instead of using an App to do it for you.

#

Everyone who uses the API would need to do this. So this should not be some foreign concept to anyone using it.

past whale
#

Ah okay this is a listed Stripe App, not a third-party plugin, and the Stripe App you are using is switching to restricted keys for authentication. So no, you can't generate a restricted key via the Dashboard for this -- you have to go through their app flow to generate this key as indicated at https://docs.stripe.com/stripe-apps/api-authentication/rak

#

If you are then seeing an error using their App then they have a bug in their App and you would need to reach out to them about that.