Get Your API Keys
Moyasar provides unique API keys to clients to authenticate API requests. Each account has two pairs of keys - one for testing and one for live transactions.
Term | Description |
---|---|
publishable key | The publishable key allows for only one operation - creating a payment and thus can be attached to public web forms, such as an HTML hidden field. |
secret key | The secret key provides access to all operations in the documentation and is a powerful tool that must be kept confidential. |
Live API keys are used to accept real payments. (these will appear once you activate your account).
Test API keys allow you to test your integration with moyasar without risking the usage of real money.
You can regenerate your API keys by clicking on the Regenerate button next to the key you want to regenerate.