Skip to content
myela

What changes between the sandbox and production, and who issues live keys.

The sandbox and production are separate systems with separate keys. Going live means a live key from Myela, the production host, and a signature on every request.

You change the key and the base URL. Nothing else in your code changes, as long as it already signs requests. A test key is unknown in production and a live key is unknown in the sandbox, so you can’t mix them.

Setting Sandbox Production
API key myela_sk_test_…, issued by you in your account. myela_sk_live_…, issued by Myela.
Base URL The sandbox host. The production host. It isn’t published here; ask Myela.
Signing Optional, unless the key was issued to require it. Required on every request.
Browser origins https, plus http on localhost addresses. https only.

There is no self-serve live key. Myela sets up your account, configures processing, decides which operations the key can call, and then issues the key. The plaintext key is never sent by email or chat. It’s delivered once, through a one-time channel.

The signing secret, myela_sign_…, is delivered once with the key. Store it the way you store the key. If you lose it, the key is revoked and a new one is issued.

A live key rejects an unsigned request with 401 authentication_failed. That makes cURL and Postman fine for test keys and unsuitable for live ones. With @myela/payments, pass signingSecret to the client and the SDK signs each request. If you sign yourself, follow the canonical string in Authentication and request signing.

An ordinary test key never checks a signature, so a wrong secret or a broken signer only shows up on your first live call. Ask Myela for a test key that requires signing and run your integration against the sandbox with it first.

A live publishable key refuses http origins, localhost included. Add the https origins of every page that loads Myela Elements to the live key’s allow-list. An empty list refuses every origin.

To rotate a live key, ask Myela. Myela issues the new key, you cut over to it, and then the old one is revoked. Revoking takes effect immediately, so switch before you revoke.

  1. Run your integration in the sandbox with a signing-required test key.
  2. Pass signingSecret to the SDK, or sign each request yourself.
  3. Receive the live key and its signing secret from Myela, and store both as secrets.
  4. Set the base URL to the production host. Ask Myela for it.
  5. Add the https origins of your checkout pages to the live publishable key.
  6. Plan rotation with Myela: new key first, then revoke the old one.