My name is D’Aaron Gonzalez and I’m so close to launching my first app thanks to Replit Agent, however I’ve created this death loop of mixed matched keys from Stripe testing environments to Live Keys.
I’ve triple checked that the secrets are all set to the correct live key in the Secrets tool. I’ve looked at all the files to make sure it’s not hardcoded anywhere.
Has anyone ran into a similar issue where API keys just don’t change on client-side calls?
That is exactly it, the Checkout session is initiated via the PriceID and an API call, however when I switched to production keys the client-side gets and error saying that a live priceID is being initiated with a Test Key.
I started by updating the values in the Secrets tool, and when that didn’t work I moved into other places that may have been storing the key without my knowledge. So far, it seems that it is being pulled from the secrets environmental variable.
The way I updated the publishable key and secret key was just by replacing the values in the tool, so my guess is I’ve somehow updated the Keys for the testing environment but not the Prod environment.
I’m not sure if Replit separates these environments, but the API call works with the Webview link when testing, does not work when deployed to the custom domain.