-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path.env.example
More file actions
65 lines (50 loc) · 2.02 KB
/
Copy path.env.example
File metadata and controls
65 lines (50 loc) · 2.02 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Server Configuration
PORT=3000
# Database Configuration
DATABASE_URL="mysql://user:password@localhost:3306/mpesa_db"
# M-Pesa Environment (SANDBOX or PRODUCTION)
MPESA_ENV=SANDBOX
# Safaricom Daraja API Credentials
CONSUMER_KEY=YOUR_CONSUMER_KEY
CONSUMER_SECRET=YOUR_CONSUMER_SECRET
# STK Push Configuration
PASS_KEY=YOUR_PASSKEY
STK_SHORTCODE=174379
STK_CALLBACK_URL=https://yourdomain.com/api/mpesa/callback
# Initiator Credentials (for B2C, B2B, Balance, Status, Reversal)
INITIATOR_NAME=YOUR_INITIATOR_NAME
INITIATOR_PASSWORD=YOUR_INITIATOR_PASSWORD
# M-Pesa Certificate Path
MPESA_CERT_PATH=./certificates/ProductionCertificate.cer
# C2B Configuration
C2B_SHORTCODE=600496
C2B_VALIDATION_URL=https://yourdomain.com/api/c2b/validation
C2B_CONFIRMATION_URL=https://yourdomain.com/api/c2b/confirmation
# B2C Configuration
B2C_SHORTCODE=YOUR_B2C_SHORTCODE
B2C_RESULT_URL=https://yourdomain.com/api/b2c/callback/result
B2C_TIMEOUT_URL=https://yourdomain.com/api/b2c/callback/timeout
# B2B Configuration
B2B_SHORTCODE=YOUR_B2B_SHORTCODE
B2B_RESULT_URL=https://yourdomain.com/api/b2b/callback/result
B2B_TIMEOUT_URL=https://yourdomain.com/api/b2b/callback/timeout
# Account Balance Configuration
BALANCE_SHORTCODE=YOUR_SHORTCODE
BALANCE_RESULT_URL=https://yourdomain.com/api/account-balance/callback
BALANCE_TIMEOUT_URL=https://yourdomain.com/api/account-balance/timeout
# Transaction Status Configuration
STATUS_SHORTCODE=YOUR_SHORTCODE
STATUS_RESULT_URL=https://yourdomain.com/api/transaction-status/callback
STATUS_TIMEOUT_URL=https://yourdomain.com/api/transaction-status/timeout
# Reversal Configuration
REVERSAL_RESULT_URL=https://yourdomain.com/api/reversal/callback
REVERSAL_TIMEOUT_URL=https://yourdomain.com/api/reversal/timeout
# Dynamic QR Configuration
QR_MERCHANT_NAME=YOUR_MERCHANT_NAME
# Bill Manager Configuration
BILL_SHORTCODE=YOUR_BILL_SHORTCODE
BILL_EMAIL=your-email@example.com
BILL_OFFICIAL_CONTACT=YOUR_CONTACT
BILL_CALLBACK_URL=https://yourdomain.com/api/bill-manager/callback
# Redis Configuration
REDIS_URL=redis://localhost:6379