Techlion https://techlion.co.ke/ Technologies Fri, 20 Jan 2023 11:55:45 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 https://techlion.co.ke/wp-content/uploads/2023/01/cropped-techlionico-32x32.png Techlion https://techlion.co.ke/ 32 32 Guide to Mpesa-API Intergration https://techlion.co.ke/2023/01/20/guide-to-integrating-to-the-new-mpesa-api/ https://techlion.co.ke/2023/01/20/guide-to-integrating-to-the-new-mpesa-api/#comments Fri, 20 Jan 2023 11:22:42 +0000 https://techlion.co.ke/?p=175 MPESA released their new API (Application Programming Interface) to enable developers to access M-Pesa services;  These include:  In the spirit of giving back to the community and assist other developers, we decided to document and share the process we undertook in integrating to the MPESA API: Step 1: Creating an account on MPESA G2 Portal The MPESA G2 portal is an online platform where […]

The post Guide to Mpesa-API Intergration appeared first on Techlion.

]]>
MPESA released their new API (Application Programming Interface) to enable developers to access M-Pesa services; 

These include: 

  • C2B – Customer to busness – This is the normal paybill and and till number service, 
  • B2C – Business to customer – This enables business to send money directly to a list of phone number from their bulk account. This is a convenient service to pay salaries to many staff to reduce time and error in doing this one by one. 
  • B2B – Business to business – This enables business to pay other businesses. It’s the same as B2C but instead of sending money to a personal phone number, you sent to a paybill or till number. 

In the spirit of giving back to the community and assist other developers, we decided to document and share the process we undertook in integrating to the MPESA API:

Step 1: Creating an account on MPESA G2 Portal

The MPESA G2 portal is an online platform where merchants access paybill or till number transactions. The purpose of this step is to create a user who will be sent a One Time Password (OTP) before going live. Although online, you need to install a certificate in your Windows Internet Explorer. Below is the procedure:

  1. To request the weekly certificate password to setup the MPESA portal, kindly send a blank email to M-pesaCertpassword@safaricom.co.ke
  2. Click on the link in the autoresponder email to request the certificate. 
  3. Unfortunately, MPESA will not inform you when the certificate is generated and you’ll need to go back to the link in the email to install the certificate in Windows Internet Explorer. But you can use Chrome after installing. 
  4. If you don’t have an account setup, kindly contact MPESA Business Support on M-PESABusiness@safaricom.co.ke or 0722002222 and request them to setup for you an account on MPESA G2 portal
  5. Login to the MPESA portal by going to https://org.ke.m-pesa.com/, go to “Operator Management and create a user and give the user “Business Manager” and all roles that have an “API” word in them
  6. Ensure you set your phone number to get notification via SMS and not email. For security purposes, the phone number will be sent a one time password (OTP) just before going live. 

Step 2: Creating an app on MPESA Developer Portal 

MPESA Developer Portal enables a developer to create an app and use that app to access the MPESA API’s. The purpose of this step is to be able to create an app. There is the test app and live app. The test app is used for development and after going live, an live app will be automatically created. This involves the following steps: 

  1. Go to MPESA Developer Portal and create an account
  2. Create an app

Step 3: Writing to C2B, B2C or B2C code

You need to write the code to handle C2B request or to send B2C and B2C request. The code can be written in the programming language of your choice. 

The library will enable you to register endpoint urls and test the API’s. During this step you’ll use the Consumer Key’s and Consumer Secret of the test app created in Step 2. The URL you register need to be SSL or https. You can get a certificate from MPESA and install it on your server or use Lets Encrpt 

Step 4: Going live 

After making sure that your code is working correctly, you’ll need to go live that is a four sub step processes that enables you to verify you are the actual owner of the API by sending a one time password to the phone number of the user you created in Step 1. 

  1. Login to Mpesa Developer portal and click on “Go Live”
  2. Verification Step 1: Upload test case. Fortunately or unfortunately, Mpesa does not validate the test cases so just download the excel, fill it and re-upload it 🙂 
  3. Verification step 2: The following is a guide on how to fill the fields in this form
    • Verification Type: Short Code
    • Organization Name – Paybill or Till Company Registration Name
    • Organization Short Code – For Paybill your short code and for till number, use a head office number and not store number. For till number it’s not clearly documented
    • MPesa User Name- Use the user name of the user you created in Step 1 above. Note that this is case sensitive.
    • We’ve receive a one time password (OTP) to the number registered in Step 1. 
  4. Verification step 3: Enter password received and click “Submit”
  5. Verification step 4: Tick all the check and key in the OTP and click “Submit”
  6. Switch to the live app and use the live app’s Consumer Key’s and Secret in the code written in step 3. 

Maybe, we might have missed something but it’s our hope that these four steps will serve as a bridge. That they’ll make your Mpesa integration journey a little bit easier and help you connect the dots.  

Well, well, you can always reach out to us and we are open to assist where we can. 

The post Guide to Mpesa-API Intergration appeared first on Techlion.

]]>
https://techlion.co.ke/2023/01/20/guide-to-integrating-to-the-new-mpesa-api/feed/ 1
Trends in website design https://techlion.co.ke/2023/01/20/trends-in-website-design/ https://techlion.co.ke/2023/01/20/trends-in-website-design/#respond Fri, 20 Jan 2023 11:18:55 +0000 https://techlion.co.ke/?p=173 Website design has come a long way since the early days of the internet. With advancements in technology and changes in user behavior, website design trends are constantly evolving. Here are a few of the current trends in website design that you should be aware of: In summary, website design trends are constantly evolving and […]

The post Trends in website design appeared first on Techlion.

]]>
Website design has come a long way since the early days of the internet. With advancements in technology and changes in user behavior, website design trends are constantly evolving. Here are a few of the current trends in website design that you should be aware of:

  1. Minimalism: Minimalistic design is all about simplicity and clean lines. This trend focuses on removing unnecessary elements and focusing on the essentials. It’s all about creating a visually pleasing, easy-to-navigate website that allows users to find the information they need quickly and easily.
  2. Mobile-First Design: With more and more users accessing the internet from mobile devices, it’s crucial to ensure that your website is mobile-friendly. Mobile-first design means that the website is designed for smaller screens and touch-based navigation, with the desktop version being an afterthought.
  3. Interactive Elements: Interactive elements such as animations, hover effects, and gamification are becoming increasingly popular in website design. These elements can add a dynamic and engaging touch to your website and help to keep users engaged.
  4. Bold Typography: Big, bold typography is becoming a popular trend in website design. It can be used to create a strong visual impact and help to guide users through the website.
  5. Authentic Photography and Video: Authentic images and videos are becoming more popular in website design. They can be used to create a sense of realism and help to build trust with users.
  6. Asymmetrical Layouts: Asymmetrical layouts are becoming more popular as a way of breaking up the traditional grid structure of a website. They can be used to create a sense of movement and flow, and to draw attention to specific elements on the page.
  7. Dark Mode: Dark mode is a design trend that has been gaining popularity in recent years. It’s a popular feature in many apps and websites, and it’s also starting to appear in more traditional websites. Dark mode makes it easier for users to read text on a screen in low-light conditions.

In summary, website design trends are constantly evolving and changing with user behavior, technology advancements, and design preferences. Keep an eye out for these current trends and consider how they can be applied to your website design to make it more visually appealing, engaging, and user-friendly.

The post Trends in website design appeared first on Techlion.

]]>
https://techlion.co.ke/2023/01/20/trends-in-website-design/feed/ 0
Choosing best software https://techlion.co.ke/2023/01/20/choosing-best-software/ https://techlion.co.ke/2023/01/20/choosing-best-software/#respond Fri, 20 Jan 2023 11:17:03 +0000 https://techlion.co.ke/?p=171 Choosing the best software for your business or organization can be a daunting task. There are countless options available, and each one claims to be the best solution for your needs. However, by taking the time to carefully evaluate your options and understand your specific requirements, you can make an informed decision and select a […]

The post Choosing best software appeared first on Techlion.

]]>
Choosing the best software for your business or organization can be a daunting task. There are countless options available, and each one claims to be the best solution for your needs. However, by taking the time to carefully evaluate your options and understand your specific requirements, you can make an informed decision and select a software that will meet your needs and help your business thrive.

One of the first things to consider when choosing software is your specific needs. What tasks do you need the software to perform? What data will it need to manage? How many users will be accessing the software? These are all important questions to answer before you start looking at software options.

Another important factor to consider is compatibility. Will the software work with your existing hardware and infrastructure? Is it compatible with other software you’re currently using? This is especially important if you’re looking to integrate the new software with other systems you’re already using.

Once you’ve determined your specific needs and compatibility requirements, you can start looking at different software options. Do your research and read reviews from other users. Check out demos and free trials to get a feel for the software and see if it’s the right fit for your business.

When evaluating software options, consider the following:

  • Features and functionality
  • User interface and ease of use
  • Scalability and flexibility
  • Support and documentation
  • Pricing and licensing

Finally, when making a decision, don’t be afraid to ask for help. Reach out to a software consultant or vendor for additional information and guidance. They can help you understand the pros and cons of different software options and help you make the best decision for your business.

In summary, choosing the best software requires you to evaluate your specific needs, compatibility and research on different options, and their features, pricing, support and scalability. Don’t be afraid to ask for help and consult experts if needed.

The post Choosing best software appeared first on Techlion.

]]>
https://techlion.co.ke/2023/01/20/choosing-best-software/feed/ 0