What are publishable and secret keys?
Publishable and secret keys are used with the KOMOJU API to facilitate payments.
Please note the differences below.
Publishable key: This key can interact with a limited set of API resources. It is safe to expose your publishable key in public environments, such as client-side code.
Secret key: The secret key provides full access to all API resources. It is critical to keep this key secure, as it can be used to perform any action on your account. Always store your secret key on the server side and never expose it in client-side applications. Secret keys are often used by backend systems or third-party integrations to create payments through KOMOJU.
Where can I find my publishable and secret keys?
You can find both keys on the Settings page in the KOMOJU admin dashboard.
Use the following instructions to find your keys:
1. Log in to the KOMOJU dashboard at https://komoju.com/admin
2. From the dashboard menu, select "Settings"
3. Your keys will be displayed in the API keys section
What is an API version?
The [KOMOJU API] is versioned to keep the API evolving while maintaining backward compatibility. The name of an API version is based on the date it was released. For example, API version "2024-07-15" was released on July 15, 2024.By specifying the API version when editing the private or public key, you can set the API version for API requests using that private or public key.
Please note that your keys are different in Test mode and Live mode.
When using Live mode, please do not forget to update your keys.