- Docs
- Platform
Go live
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.
What changes
Section titled “What changes”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. |
Live keys come from Myela
Section titled “Live keys come from Myela”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.
Sign every request
Section titled “Sign every request”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.
Re-list your browser origins
Section titled “Re-list your browser origins”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.
Rotate and revoke
Section titled “Rotate and revoke”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.
Checklist
Section titled “Checklist”- Run your integration in the sandbox with a signing-required test key.
- Pass
signingSecretto the SDK, or sign each request yourself. - Receive the live key and its signing secret from Myela, and store both as secrets.
- Set the base URL to the production host. Ask Myela for it.
- Add the
httpsorigins of your checkout pages to the live publishable key. - Plan rotation with Myela: new key first, then revoke the old one.