All callback urls uses ngrok api to expose localhost online!!

FRONTEND USING VUE3/NUXT

YOUR UI

Your UI should be atleast like this..

YOUR TEMPLATE

Your ui template code

SCRIPT FUNCTIONS

Initialize Variables to used

Calling register(get) request

SIMULATION

calling simulate request(get) from safaricom

PUSHING MPESA STK TO USER

Sending a post request with user credentials to push stk user will get an alert msg.

All in one Pay!

Push all request by one click

FINALLY MOUNTING ALL RESPONSE TO THE SCREEN

All notification if successful or cancelled will be mounted to the screen!

Did you find this helpful?

Find me on github & Linkedln

star.rate.contribute to this doc

More resources-: source code

©Copyright 2022. franc_pro