Skip to main content
Your API keys tell Afara which merchant account a payment belongs to. You paste one of them into your website’s payment widget, and Afara does the rest.

Find your keys

1

Open Settings

Log in to the merchant portal and click the gear icon at the top right.
2

Open the API Keys tab

Select API Keys. Under API Configurations you will see four keys.
3

Copy the one you need

Use the copy button next to a key. Use the eye icon to reveal a hidden key.
Your secret keys can authorise actions on your account. Never put them on your website, in a mobile app, in screenshots, or in a public GitHub repository. Public keys are safe to place on your website.
Always take your keys from Settings > API Keys and check the prefix before you paste. The key box on the Get started page is labelled “Test API Keys” but can show your live keys, so do not rely on it.

Set your webhook and callback addresses

Further down the same tab, under Webhooks & Callback, there are four fields. Each takes a full address that starts with https://. Click Update to save. You need to fill in at least one of them. Learn more in Webhooks.

If a key is exposed

Click Regenerate Keys at the top of the API Keys tab to create new keys. The old keys stop working, so update your website straight away.

Add the payment widget

Paste your public key into your website and take your first test payment.

Set up webhooks

Get notified the moment a customer pays.