Skip to content
PageRecheck

Test-mode keys

pk_test_ Stripe keys and sandbox ids for PayPal, Paddle, Braintree and Square on a production domain (fine on localhost and preview hosts).

Fix before launchCertainscore −20

Why it matters

A test-mode payment key means checkout takes no real money, or fails, on launch day.

What a finding looks like

The engine's own output on a fictional test page (acme-launch.test), as the extension shows it.

Test-mode keysFix before launch

Test-mode payment keys are in the page (Stripe test publishable key)

Found on the page

  • Stripe test publishable key in inline <script>: pk_test_51Nz…

How to fix it

Switch the production build to your live publishable key / live environment, and keep test keys in a development-only env file. Values above are cut short on purpose.

Fix it in your builder

A prompt to paste into the builder's chat or your coding agent. It's the same text the extension copies for this finding, with the quotes from your own page.

LovableVite + React, with index.html as the head of every page
Please fix the launch issues below in this Lovable project. Most of them live in index.html (the <head>) or in the page components. Page: https://acme-launch.test/

Test-mode keys: Test-mode payment keys are in the page (Stripe test publishable key) (must fix before launch)
   Where (from the page):
   - Stripe test publishable key in inline <script>: pk_test_51Nz…
   What it should become: Switch the production build to your live publishable key / live environment, and keep test keys in a development-only env file. Values above are cut short on purpose.

If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so.
Don't change anything else: keep the layout, copy and styling as they are. When you're done, list what you changed.
BoltVite + React (TypeScript) by default; other starters too
Please fix the launch issues below in this Bolt project. Check index.html and the files in src/ and public/. Page: https://acme-launch.test/

Test-mode keys: Test-mode payment keys are in the page (Stripe test publishable key) (must fix before launch)
   Where (from the page):
   - Stripe test publishable key in inline <script>: pk_test_51Nz…
   What it should become: Switch the production build to your live publishable key / live environment, and keep test keys in a development-only env file. Values above are cut short on purpose.

If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so.
Don't change anything else: no redesign, no new dependencies. When you're done, list the files you changed.
v0Next.js App Router with Tailwind and shadcn/ui, deployed on Vercel
Please fix the launch issues below in this v0 (Next.js) project. Page metadata belongs in the metadata export of app/layout.tsx or the page file. Page: https://acme-launch.test/

Test-mode keys: Test-mode payment keys are in the page (Stripe test publishable key) (must fix before launch)
   Where (from the page):
   - Stripe test publishable key in inline <script>: pk_test_51Nz…
   What it should become: Switch the production build to your live publishable key / live environment, and keep test keys in a development-only env file. Values above are cut short on purpose.

If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so.
Don't change anything else: keep the components, styles and copy as they are. When you're done, list what you changed.
ReplitAny: React, or Flask/Express front ends served from the same app, among others
Please fix the launch issues below in this Replit app. Make the changes in the code that is deployed, not only in the workspace preview. Page: https://acme-launch.test/

Test-mode keys: Test-mode payment keys are in the page (Stripe test publishable key) (must fix before launch)
   Where (from the page):
   - Stripe test publishable key in inline <script>: pk_test_51Nz…
   What it should become: Switch the production build to your live publishable key / live environment, and keep test keys in a development-only env file. Values above are cut short on purpose.

If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so.
Don't change anything else and don't restructure the app. When you're done, list the files you changed and redeploy.
CursorYour choice: Next.js, Vite, Astro, plain HTML
Fix the launch issues below in this repository. Search the codebase for each quoted snippet to find where it comes from, change only what is needed, and show me the diff. Page: https://acme-launch.test/

Test-mode keys: Test-mode payment keys are in the page (Stripe test publishable key) (must fix before launch)
   Where (from the page):
   - Stripe test publishable key in inline <script>: pk_test_51Nz…
   What it should become: Switch the production build to your live publishable key / live environment, and keep test keys in a development-only env file. Values above are cut short on purpose.

If a quoted snippet is intentional text and not a forgotten placeholder, don't change it, and say so.
Don't change anything else: no refactors, renames or formatting changes outside these fixes. List the files you changed.