Shift4 has two kinds of API keys:
Public key - used to identify the account on the front-end
Secret key - used to authorize API operations on the back-end
Both of those are necessary to integrate Shift4 forms properly.
Test environment and live environment have separate sets of API keys. Once integration in the test environment you can simply replace the test keys with production ones in order to start processing.
Warning
Please make sure that the Secret Key is shared with authorized parties only!
Note
Every processing account has its own separate set of API keys.
Locating API keys
Pick the account you want to find API keys for by using the drop-down in the upper right of the backoffice.
Click on the Account name again.
Click on Account settings.
Navigate to the API keys section.
Generating new API key
Pick the account you want to generate the new API key for by using the drop-down in the upper right of the backoffice.
Click on the Account name again.
Click on Account settings.
Navigate to the API keys section.
Click on the Roll button.
Choose when you want to expire an existing API key.
Verify the process using your Email and Password.
Click on the Roll API key button.