# Before going live

> A checklist before production: environment and storage, initialization package, printing, result handling, status checks, QR payments, location and security.

Source: https://ekasa.ninedigit.sk/en/docs/go-live-checklist

You have built and tested the integration in the integration environment. Before you deploy it at a business, go
through this list. Each item links to the article that explains it.

## Environment and storage

- **A real storage instead of In-Memory.** In production eKasa runs with a CHDÚ storage (CHDU Lite, CHDU-SK or
  SwissBit); In-Memory forgets receipts after a restart ([Storage and hardware](https://ekasa.ninedigit.sk/en/docs/storage-and-hardware)).
- **Production initialization package.** The storage holds the business's identification and authentication data for
  its real cash register code, not the integration set `888123456…`
  ([Initialization package](https://ekasa.ninedigit.sk/en/docs/environment-setup#initialization-package)).
- **Environment from the data.** Let the environment be determined automatically from the identification data, so
  a production cash register is not sent to the integration environment
  ([Invalid data message signature](https://ekasa.ninedigit.sk/en/docs/troubleshooting/invalid-signature)).
- **A valid certificate.** Authentication data are valid for 2 years. Check that the certificate is valid and has
  enough time left ([System status](https://ekasa.ninedigit.sk/en/docs/status#approaching-certificate-expiry)).

## Receipt and printing

- **`externalId` on every receipt.** Without it, the same sale is recorded twice when a response is lost
  ([Duplicate protection](https://ekasa.ninedigit.sk/en/docs/receipt-registration/external-id)).
- **Print test on the real printer.** Print a receipt and a copy, check diacritics and the layout of your own texts
  ([Encoding and special characters](https://ekasa.ninedigit.sk/en/docs/encoding), [Printer info](https://ekasa.ninedigit.sk/en/docs/printer-info)).
- **Cash rounding.** For cash payments send `roundingAmount`
  ([Payments and rounding](https://ekasa.ninedigit.sk/en/docs/receipt-registration/payments)).
- **Cancellation and returns.** Try a cancellation and a return of goods with a reference to the original receipt
  ([Cancellation and returns](https://ekasa.ninedigit.sk/en/docs/receipt-registration/corrections)).

## Result handling

- **Three registration results.** Your software tells apart `isSuccessful` `true`, `null` (offline) and `false`
  (rejected) and shows the cashier what happened ([Registration result](https://ekasa.ninedigit.sk/en/docs/receipt-registration/result)).
- **Do not send an offline receipt again.** With `null` the receipt is registered and printed; eKasa sends it by
  itself ([How eKasa works](https://ekasa.ninedigit.sk/en/docs/how-it-works#when-there-is-no-internet)).
- **Printing error.** With [`-502: PrintReceiptError`](https://ekasa.ninedigit.sk/en/docs/rest-api/error-codes#-502-printreceiptererror) the
  receipt is registered: print a copy for the customer, or cancel the receipt and issue a new one.
- **Your software's timeout.** When it times out, repeat the receipt with the same `externalId`, not as a new one
  ([Duplicate protection](https://ekasa.ninedigit.sk/en/docs/receipt-registration/external-id#what-ekasa-returns)).

## Status checks

- **Status at start and regularly.** Your software checks the eKasa status when it starts and then regularly, and
  warns the cashier about problems ([System status](https://ekasa.ninedigit.sk/en/docs/status)).
- **Queue of unsent messages.** Data messages must be sent within 96 hours. The cashier should know that something
  is waiting in the queue ([System status](https://ekasa.ninedigit.sk/en/docs/status#checking-the-queue-of-unsent-messages)).
- **Paper and storage.** Show the cashier a low paper roll and a filling storage in time.

## If you use them

- **QR payments.** The settings hold the business's notification account, and your software prints the payment
  failure notice ([QR payments](https://ekasa.ninedigit.sk/en/docs/qr-payments)).
- **Portable cash register.** Register the location before sales start ([Location registration](https://ekasa.ninedigit.sk/en/docs/location-registration)).
- **Network access.** If you connect to eKasa from another station or from the cloud, turn on login and HTTPS or
  Expose ([Connection and security](https://ekasa.ninedigit.sk/en/docs/security)).

## After going live

- **Updates.** Follow the [changelog](https://ekasa.ninedigit.sk/historia-zmien) and keep eKasa up to date; fixes also concern the
  communication with the eKasa system.
- **Logs when there is a problem.** If something does not work, attach the service logs to your question
  ([Troubleshooting](https://ekasa.ninedigit.sk/en/docs/troubleshooting)).
