#hansendev1
1 messages · Page 1 of 1 (latest)
So your code is still referencing the test secret key somehow
i dont know how to remove it i have a file called secret.php which i downloaded from the stripe ai docs. in that file i replaced my test key with the live secret key
what should i do?
i went ahead and even manualy entered it in this method in php but same error
\Stripe\Stripe::setApiKey(" manually placed my live key here ");
I'll need to see your code to know what's happening. Do a search through your project to make sure your test key isn't being referenced anywhere.
Make sure it's not set as an environment variable
And that's not where it's being pulled in
Your live key doesn't start with sk_test_123 does it?
nop
(Don't share the whole thing in here) but what's the prefix?
sk_live
Ok got it
That seems right
I'll need to see code (including where you make api calls and where you set the key) to help further
i dont make calls i just download code from stripe docs and used it
Yes, who doesnt like stressing alot. but here is the link i downloaded the code from
thats the one i implemented
i only saw one in the secrets.php file
and its the one i replaced
is there any other spot its hard coded ?
I don't have your code so I don't know
If you remove any sensitive data