#asharksfishbowl-no-token
1 messages ยท Page 1 of 1 (latest)
Hi ๐ that token was created in test mode, so it can't be accessed with a live key.
hi @unreal drum, thx for the response! how do i switch to live token?
Using your live key to create the token will create it in live mode.
Keep in mind that that token is for a test card and test cards will not work in live mode
ahh so i need to use a real cc, okay thx i will give that a shot
Apologies, I mistyped in my first message. Live key will create the token in live mode.
And sounds good, let us know if you run in to further issues.
I will and appreciate the help! ๐
well it looks like even with a good card it still gives me resource_missing - source
No such token: 'tok_1K1ZbwJTktXuMExMM0V9MNZw'
@strong summit this error usually just means you are mixing up the API keys overall
You are creating the token on account A with its Publishable API key and then you are trying to use that token on a separate Stripe account with its Secret API key
yep I confirmed that's the issue. You are mixing up your API keys and that's what you need to fix
@odd rover thx for the reply, I have the same key in both the frontend and backend. Do i need to use pkey instead of the skey?
const stripe = require('stripe')(
'sk_live',
);
you think you have the same key but you don't right now
you are using the pk_live from account A and then using the sk_live from account B
hmm okay i will keep looking at it
I have rolled both sk and pk too new ones on the same account but still get the same error. Do i need to generate the token manually before going live?
this is really completely unrelated to all of this
you are purely not using the right API keys. You think you are using the right ones but you are not. Something something in your code is setting the wrong Publishable or wrong Secret key and that will not work until you find it
You have to properly debug your code, add clear logs both server-side and client-side to confirm which exact API key you are using
okay thx for the insight, i will keep digging
@strong summit are you unblocked?
Hey @odd rover i think so, thx for the help there was an environment variable i needed to set