Overview
Your API credentials are the foundation of your 88Pay integration. This guide will walk you through obtaining, securing, and managing your API Key and Merchant ID.Prerequisites: You must have an approved 88Pay account before you can access API credentials.
What Are API Credentials?
88Pay uses two pieces of information to authenticate your requests:API Key
A unique secret key that identifies your applicationFormat:
sk_test_... (sandbox) or sk_live_... (production)Merchant ID
Your unique merchant identifier in the 88Pay systemFormat:
MCH-{COUNTRY}-{ID}Step-by-Step: Get Your Credentials
Follow these steps to obtain your API credentials:1
Login to the Dashboard
2
Complete Account Verification
Before accessing API credentials, you must complete the verification process:
- Navigate to Settings → Account Details
- Upload all required documents:
- Government-issued ID
- Proof of address
- Business registration (if applicable)
- Tax information

3
Navigate to API Credentials
Once your documents are approved:
- Click on Settings in the left sidebar (bottom left corner)
- Select API Credentials from the settings menu

4
View and Copy Credentials
In the API Credentials section, you’ll see:
- API Key: Pre-generated secret key
- Merchant ID: Your unique identifier
- Environment: Sandbox or Production

Understanding Environments
88Pay provides two separate environments, each with their own credentials:- Sandbox (Testing)
- Production (Live)
Sandbox Environment
Purpose: Development and testingCharacteristics:- No real money is transferred
- Test payment methods available
- Faster transaction processing
- Separate credentials from production
https://api-sandbox.88pay.ioCredential Format:- Initial integration development
- Testing new features
- QA and staging environments
- Training and demos
Sandbox credentials are available immediately after account creation.
Credential Management
Storing Credentials Securely
Use Environment Variables
Use Environment Variables
Store credentials in environment variables, never hardcode them:Bad Practice ❌Good Practice ✅
Use Secret Management Services
Use Secret Management Services
For production, use dedicated secret management:
- AWS Secrets Manager
- Google Cloud Secret Manager
- Azure Key Vault
- HashiCorp Vault
Add to .gitignore
Add to .gitignore
Prevent accidental commits of credentials:
Use Different Credentials Per Environment
Use Different Credentials Per Environment
Maintain separate credentials for each environment:
Rotating API Keys
For security, you should rotate your API keys periodically:1
Generate New Key
In the dashboard, click Generate New API Key
2
Update Your Application
Deploy your application with the new credentials
3
Verify Operation
Test that everything works with the new key
4
Revoke Old Key
Once confident, revoke the old key in the dashboard
Security Best Practices
Server-Side Only
Never expose credentials in client-side code, mobile apps, or public repositories
Use HTTPS
Always make API requests over HTTPS. HTTP requests will be rejected
Rotate Regularly
Rotate API keys every 90 days or immediately if compromised
Monitor Usage
Regularly review API usage logs in the dashboard for suspicious activity
IP Whitelisting
Enable IP whitelisting in production for an extra layer of security
Separate Keys
Use different API keys for different applications or services
Troubleshooting
Can't see API credentials section
Can't see API credentials section
Cause: Your account or documents are not yet approvedSolution:
- Check your email for approval status
- Verify all required documents are uploaded
- Contact support if waiting more than 48 hours
API Key not working
API Key not working
Cause: Using wrong environment credentialsSolution:
- Verify you’re using sandbox credentials with sandbox API
- Check for typos or extra spaces
- Ensure key hasn’t been revoked
Merchant ID format error
Merchant ID format error
Cause: Incorrect Merchant ID formatSolution:
- Format should be
MCH-{COUNTRY}-{ID} - Copy directly from dashboard to avoid errors
- Don’t add quotes or spaces


