Production Mode
Learn how to switch from test mode to production mode and start accepting real payments.
Before Going Live
Before enabling production mode, ensure you have completed the following checklist:
Pre-launch Checklist
- ✅ Test All Payment Flows - Verify all payment scenarios work correctly in test mode
- ✅ Error Handling - Implement proper error handling for failed transactions
- ✅ Webhook Configuration - Set up and test webhook endpoints for payment notifications
- ✅ Verify Payment Implementation - Always verify payments server-side before fulfilling orders
- ✅ Security Review - Ensure API keys are stored securely and not exposed in client-side code
- ✅ SSL Certificate - Your website must use HTTPS for secure transactions
Switching to Production Mode
Step 1: Get Production API Keys
- Log in to your AdmasPay Merchant Dashboard
- Navigate to Settings → API Keys
- Copy your Live API Key (starts with
live_)
Step 2: Update Your Configuration
Replace your test API key with the production API key in your server configuration:
// Before (Test Mode)
const API_KEY = 'test_sk_xxxxxxxxxxxxx';
// After (Production Mode)
const API_KEY = 'live_sk_xxxxxxxxxxxxx';Step 3: Update Webhook URLs
Ensure your webhook endpoints are configured for production:
- Go to Settings → Webhooks in the dashboard
- Update the webhook URL to your production server
- Test the webhook connection
Production Best Practices
Security
- Never expose your API keys in client-side code or version control
- Use environment variables to store sensitive credentials
- Implement rate limiting on your endpoints
- Enable two-factor authentication on your merchant account
Monitoring
- Set up alerts for failed transactions
- Monitor webhook delivery status
- Review transaction logs regularly
- Track API response times
Error Handling
- Implement retry logic for failed webhook deliveries
- Log all API errors for debugging
- Provide clear error messages to users
- Have a fallback plan for system downtime
Need Help?
If you encounter any issues during the transition to production mode, contact our support team:
- Email: support@admaspay.com
- Documentation: Check our Error Codes guide
Last updated on