-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
27 lines (22 loc) · 1.06 KB
/
Copy path.env.example
File metadata and controls
27 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# MPesa API Credentials (Get from https://developer.safaricom.co.ke)
MPESA_CONSUMER_KEY=your_consumer_key_here
MPESA_CONSUMER_SECRET=your_consumer_secret_here
MPESA_SHORTCODE=174379
MPESA_PASSKEY=your_passkey_here
# Environment: sandbox or production
MPESA_ENVIRONMENT=sandbox
# C2B Configuration (optional - required for B2C and Transaction Status)
MPESA_INITIATOR_NAME=testapi
MPESA_INITIATOR_PASSWORD=your_initiator_password
MPESA_SECURITY_CREDENTIAL=your_security_credential
# Callback URLs (replace with your actual publicly accessible URLs)
MPESA_CALLBACK_URL=https://yourdomain.com/api/mpesa/callback
MPESA_RESULT_URL=https://yourdomain.com/api/mpesa/result
MPESA_TIMEOUT_URL=https://yourdomain.com/api/mpesa/timeout
MPESA_VALIDATION_URL=https://yourdomain.com/api/mpesa/validation
MPESA_CONFIRMATION_URL=https://yourdomain.com/api/mpesa/confirmation
CALLBACK_URL=https://yourdomain.com/api/mpesa/callback
# Security (optional - for callback signature verification)
MPESA_SECRET_KEY=your_secret_key_for_signature_verification
# Server Configuration (optional)
PORT=3000