Paystack

The Paystack Developer Documentation

Welcome to the Paystack Developer Documentation.

You'll find comprehensive guides and documentation to help you start working with Paystack as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Discussion

Authentication

Authenticate your API calls by including your secret key in the Authorization header of every request you make. You can manage your API keys from the dashboard.

Generally, we provide both public and secret keys. Public keys are meant to be used from your front-end when integrating using Paystack Inline and in our Mobile SDKs only. By design, public keys cannot modify any part of your account besides initiating transactions to you. The secret keys however, are to be kept secret. If for any reason you believe your secret key has been compromised or you wish to reset them, you can do so from the dashboard.

SECRET KEYS

Do not commit your secret keys to git, or use them in client-side code.

Authorization headers should be in the following format: Authorization: Bearer SECRET_KEY

Sample Authorization Header

Authorization: Bearer sk_test_shdjkhdj827391nV4Lid

API requests made without authentication will fail with the status code 401: Unauthorized

All API requests must be made over HTTPS.

Secure your requests!

Do not set VERIFY_PEER to FALSE. Ensure your server verifies the SSL connection to Paystack.


What's Next

Errors

Authentication