# Leaked Checkout.com Secret Key? Delete and Replace

> Checkout.com secret key exposed on GitHub? Replace it in the Dashboard, then audit payments and refunds. Step-by-step guide.

Source: https://leakwatch.net/secrets/checkout-com-secret-key

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  Checkout.com Secret Key

Payments · Secret guide

# Leaked Checkout.com Secret Key: what to do in the first hour

High severityDetected onlyLast verified October 30, 2026 · 5 min read

A [Checkout.com](http://Checkout.com) secret key is the credential a server uses to call the [Checkout.com](http://Checkout.com) payments API. Depending on the scopes it was given, whoever holds it can create payments, issue refunds, read payment details, manage disputes and create payment instruments. Secret keys receive all scopes by default, so a key that was never narrowed can do most of what your integration can. The main dangers are unauthorized refunds and payouts, exposure of customer and transaction data, and fraud run under your merchant account. Replace the key first, then audit the account.

[Check your GitHub account for leaked secrets — free](/)

Provider

Checkout.com

Severity

High

Impact

Payments and customer data

Checked live by LeakWatch

No

## What a Checkout.com Secret Key looks like

[Checkout.com](http://Checkout.com) uses public keys, which are meant for client-side code, and secret keys, which are meant for servers. Secret keys carry an `sk_` prefix, and sandbox keys use a `sk_test_` or `sk_sbox_` style prefix. Keys of the older style are a prefix followed by a UUID in groups of 8, 4, 4, 4 and 12 characters:

```text
sk_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX   Checkout.com secret key, UUID style (masked)
sk_test_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX   sandbox key, UUID style (masked)
```

[Checkout.com](http://Checkout.com) keys often appear next to a client ID and client secret for OAuth access tokens, which are a separate credential and are treated the same way. The public key starts with `pk_` and is not secret by itself. A sandbox key only reaches test data, but it still shows how your integration is wired, and a production key often sits in the same file. The prefix `sk_` is shared with other payment vendors such as Stripe, so the vendor is told apart by context: the word `checkout`, a call to a `api.checkout.com` host, or a variable such as `CHECKOUT_SECRET_KEY`. The second rule, described below, matches something different: a customer identifier that starts with `cus_`.

## How Checkout.com Secret Keys get leaked

-   **Server configuration.** A payment module with the secret key typed into a configuration file or constant and committed.
-   **Environment files.** `CHECKOUT_SECRET_KEY` in a `.env` or compose file that lands in a repository.
-   **Sample and test code.** A quick-start copied from the documentation with a real sandbox or production key pasted in, then published.
-   **Mobile and front-end code.** A secret key placed in an app or bundle by mistake, when only the public key belongs there.
-   **Logs and support threads.** An authorization header printed by a debug option, or a request pasted in a ticket.

## What to do in the first hour

1.  **Open the keys page.** In the vendor Dashboard, open the Developers area and its keys tab (see the link below). Check which environment, sandbox or production, the leaked key belongs to. Only certain roles can manage keys, and editing or deleting an existing key may be limited to the account owner, so ask that person at once if you cannot.
2.  **Create a new secret key** and narrow its scopes to what each system needs. Secret keys are shown once at creation, so copy it straight into your secret store.
3.  **Deploy the new key** and run a sandbox or small test payment to confirm the integration works.
4.  **Delete the exposed key** from the same list, then retry a call with the old value to confirm it is rejected.
5.  **Audit the account.** Review payments, refunds, payment instruments and disputes created since the exposure. Pay attention to refunds to cards you do not recognize and to payments with unusual amounts or customers.
6.  **Check webhooks, users and other credentials.** Look for webhook endpoints you did not add, which could forward transaction data elsewhere, and review Dashboard users and their roles. If a client secret was in the same file, rotate it too.
7.  **Contact the vendor** through your account manager or support if you see fraudulent activity. Then clean the code. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github).

Not sure what else leaked from the same repository? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at Checkout.com

Secret keys are managed in the Developers section of your Dashboard account, on the tab that lists keys, after you sign in with a user allowed to manage them. Create the replacement there, then delete the exposed key. Keys belong to an environment, so make sure you are in the right one. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if what you see differs, look for the section where keys are created and listed, and follow the API keys page of the vendor’s documentation. The documentation does not describe a rotate button, so the safe sequence is create, deploy, delete.

## How LeakWatch detects it

This guide covers two rules, and neither matches a bare string. Both require the word `checkout` in any letter case, followed within about 40 characters by the value.

The first rule is called [Checkout.com](http://Checkout.com) Key. It accepts `sk_` or `sk_test_` followed by a UUID in hexadecimal, in either letter case, with the groups of 8, 4, 4, 4 and 12 characters separated by dashes. A UUID without the prefix, a key without the word `checkout` nearby, or one with a different grouping is not reported. The second rule is called [Checkout.com](http://Checkout.com) Key (2). It accepts `cus_` followed by exactly 26 letters and digits. A `cus_` value is shaped like a customer identifier rather than a secret key, so a match there tells you that [Checkout.com](http://Checkout.com) data was committed, which deserves a look, but it is not a key that can be revoked. The severity of both is **high**, with the impact class for payment data. These types are not checked live: LeakWatch does not send any request to [Checkout.com](http://Checkout.com) with the values it found.

LeakWatch detects this format but does **not** check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

## FAQ

Is the sandbox key a problem if production keys are separate?

It is a smaller problem, but not none. It exposes test data and your integration design, and production keys are often in the same file. Check the file for them and delete the sandbox key too.

What if I find a customer identifier but no key?

An identifier alone cannot move money, but it ties a customer to your account. Check what else was in the file, and make sure no key sits near it.

Can I rotate the key without downtime?

Yes. Create the new key, deploy it, confirm payments work, and only then delete the old one. If the key is already being abused, delete it at once and accept a short interruption.

## Related

-   [Stripe secret key](/secrets/stripe-secret-key)
-   [Paystack Secret Key](/secrets/paystack-secret-key)
-   [Square Access Token](/secrets/square-access-token)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with Checkout.com.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
