What is best method to support multiple stripe secrets key and publishable key for different env(like test and prod env)

While integreting our website with stripe hosted checkout page, we need to pass stripe secret key in setting of dmx server connect. Instead of hardcoding the stripe secret key, I want to use different secret key for different env like test_secret_key for test env and live_key for prod env. Is there any best way to pass different secret key for different env without hardcoding. I tried like define a env var and use it through server access.See screenshot

Similarily for publishable key in stripe component of dmx app connect.

No idea if this will work, probably not but adding {{ braces }} to the expression

The secret keys are saved per target so you can select the active target and modify to suit your needs.

For the public publishable key you can store in the database and retrieve/output or set an environment variable.