BASIC AUTH to authenticate requests. When you sign up for an account, you can view and manage your keys on the Tazapay dashboard. Tazapay API provides you with two types of keys, the API_Key and the API_Secret. You will need to authenticate by providing the base64 encoded key pair in the request Authorization header.
Tazapay has separate keys for both test and live environments. Test keys can be generated automatically by logging into the sandbox dashboard and live keys by logging into the live dashboard after clearing KYB.
To go from test mode to live mode, you need to change the endpoint URL along with changing the API keys.
How to Authenticate
-
BASIC AUTHrequires a username and a password combined with a colon. Its format is username:password. NOTE: Your API_Key will serve as the username and the API_Secret as the password. - The resultant value is encoded into a Base64 format.
- Prefix the Base64 encoded value with Basic and pass it in the Authorization header.
Example
- If your API keys are:
API Keys
- Following the
BASIC AUTHformat, the value generated is:
BASIC AUTH format
- Encoding the above value into Base64, the resultant value generated is:
Base64 value
- Include this Base64 value in the Authorization header with Basic prefix:
Authorization header
