Environments
Mastering the simple concept of Environments will help you get the most out of Supra.
Supra provides each organization with two "Environments", which act like independent workspaces, each with a distinct purpose:
- Test Environment: Allow sellers to test their products and checkout systems, without risking any mainnet cryptocurrency.
- Live Environment: Charge customers real cryptocurrency for your items.
The Test and Live environments run on identical code, meaning that the behaviour between them is almost exactly the same, ensuring that all behaviour encountered in the Test environment will also be reproduced in the Main environment.
The is only one important difference between the Test and Live environments is:
- The Test environment runs on Cardano's preproduction network.
- The Live environment runs on Cardano's mainnet network.
Since the Test environment uses the Cardano preproduction network, this means you can test the checkout process for your items for free using Cardano's preproduction test ADA (t₳).
How to Switch Environment#
Supra's environment switcher can always be found in the sidebar. It has two options to choose from, "Live" and "Test" corresponding to the environment options described above.
As you switch, you'll notice your products, payments, and all other information associated with the environment changes. This is since each environment acts as an independent workspace.
There is no need to set up every product you intend to sell on the Cardano mainnet in your Test environment, although it may be wise to set up a couple and try out some transactions to make sure you are receiving ADA/tADA correctly when you use the checkout page.