1.0.35 • Published 5 years ago

@coderafiki/mpesa-tsc v1.0.35

Weekly downloads
37
License
ISC
Repository
github
Last release
5 years ago

mpesa-tscwrapper

Wrapper for Mpesa Daraja Api using typescript

npm intall --save mpesa-tsc
yarn add mpesa-tsc  
import {Mpesa} from 'mpesa-tsc'
let mpesaService = new Mpesa(
    CONSUMER_KEY,  /* get this from mpesa */
    CONSUMER_SECRET,
    SANDBOX_SHORT_CODE,
    'random password',
    CALLBACK_URL /* to get responses from mpesa */
)
let response = mpesaService.lipaNaMpesaOnline({
     Amount: '500',
     PartyA: '254700123456',
     PhoneNumber: '254700123456',
     AccountReference: 'YOUR RANDOM REFERENCE CODE',
     TransactionDesc: 'description',
})
1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.24

5 years ago