Now, we are going to retrieve the API test keys for our stripe account. Let's open dashboard.stripe.com in our browser, click on developers in the left column and click on API keys. Write down the publishable key that we are going to use on the front end part of our code and click on reveal test key token. To unlock the secret key, write it down we are going to use this key in few moments. We are going to create a dot EMP file to store our custom environment variable. Storing keys and secrets SR own dot end file is a good practice.
Let's paste our stripe secret key in this file. Now, we are going to create a config directory to store projects configuration properties, our generic config dot j s file for regular use and a stripe js file. In this file, we export our strike key retrieved from process dot EMP. Now, to load our EMB file, we require that module as early as possible in our application. So we are going to do it in our index.js file. We need now to install the module using NPM as shown in the terminal we are going to restart the server to check for errors