MpesaConfig
Defined in: src/config.ts:29
Properties
Section titled “Properties”consumerKey?
Section titled “consumerKey?”
optionalconsumerKey:string
Defined in: src/config.ts:31
Consumer key from Daraja portal. Falls back to MPESA_CONSUMER_KEY.
consumerSecret?
Section titled “consumerSecret?”
optionalconsumerSecret:string
Defined in: src/config.ts:33
Consumer secret from Daraja portal. Falls back to MPESA_CONSUMER_SECRET.
environment?
Section titled “environment?”
optionalenvironment:Environment
Defined in: src/config.ts:35
Environment: sandbox (testing) or production. Falls back to MPESA_ENVIRONMENT.
initiatorName?
Section titled “initiatorName?”
optionalinitiatorName:string
Defined in: src/config.ts:41
B2C initiator name. Falls back to MPESA_INITIATOR_NAME.
passKey?
Section titled “passKey?”
optionalpassKey:string
Defined in: src/config.ts:39
Lipa Na M-Pesa passkey. Falls back to MPESA_PASS_KEY.
securityCredential?
Section titled “securityCredential?”
optionalsecurityCredential:string
Defined in: src/config.ts:43
B2C security credential (encrypted). Falls back to MPESA_SECURITY_CREDENTIAL.
shortCode?
Section titled “shortCode?”
optionalshortCode:string
Defined in: src/config.ts:37
Shortcode (Paybill or Till). Falls back to MPESA_SHORT_CODE.