Your Secret Key should never be sent to the frontend. Fintoc endpoints should be accessed through a backend, so that your Secret Key never comes in direct contact with the client.
To be able to use the Fintoc API, you need to have your Secret Key at hand. To instantiate the Fintoc widget, you need to have your Public Key at hand. If you need to retrieve any of these API Keys, head over to the dashboard.
Once on the dashboard, click on the button to see your API Keys:
Notice that there are two distinct sections: the section named "LIVE KEYS" and the section named "TEST KEYS".
If you are using the testing environment, you should use the API keys under the "TEST KEYS" title. Otherwise, you should use the API keys under the "LIVE KEYS" title.
Notice that some of the API keys start with
sk_ and others start with
pk_. The API keys that start with
sk_ are the Secret Keys, and the API keys that start with
pk_ are the Public Keys.
Once you've decided which API key you need (live or test, secret or public), just go ahead and copy the API key using the "copy" buttons:
Updated 14 days ago