Your Chapa merchant account can be used in one of two ways :
Live Mode: Actual money, actual exchanges, and actual results. After extensively testing your integration, switch to live mode.
Test Mode: No actual money is used in the test mode. Only our test cards and bank accounts can be used. The majority of the API’s features remain the same, and we’ll continue to send email notifications and webhooks.
You can easily switch between Live and Test modes with the toggle button at the bottom of the menu sidebar. When you switch between modes, we’ll also switch the API keys shown. Test keys will always have CHAPUBK_TEST in the prefix (for example CHAPUBK_TEST-BbsIL9E0NillGIZ4beEuU9HNCXxlJ8dR)
When you sign up in the Chapa dashboard you’re given two type of API keys :
- Secret key: Secret keys are the most powerful kind of keys and should never be made public because they have the power to authorize any action on your account.
To get to your keys:
- Log in to your Chapa Dashboard.
- Navigate to settings by clicking on the right top side icon with your initals on it.
- Select the API Keys on the horizontal tab to access both public and secret keys.
Don’t take any chances: Suppose you think your keys may have been compromised (for instance, you accidentally committed them to Git). In that case, you should immediately generate new ones using the “Generate new keys” button on the Settings > API page on your dashboard.
This will invalidate all existing keys and give you a new set, and you can then update your app to use the new ones.