Skip to content

justinelut/mpesapaydocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mpesa Pay JavaScript SDK Documentation

This repository contains the official documentation for the Mpesa Pay JavaScript SDK. The documentation is built using Nextra, a Next.js-based library for static content generation. It provides comprehensive information and guidance on integrating Mpesa payments into your server-side applications using the Mpesa Pay JavaScript SDK.

Documentation Website

The Mpesa Pay JavaScript SDK documentation is available at Mpesa Pay. The website provides easy navigation and a user-friendly interface for accessing the documentation.

Development

To contribute to the documentation or make modifications, follow the steps below:

  1. Clone the repository:
git clone https://github.com/justinelut/mpesapaydocs.git
  1. Navigate to the project directory:
cd mpesapay-docs
  1. Install the dependencies:
yarn add
  1. Start the development server:
yarn dev
  1. Open your browser and visit http://localhost:4000 to view the documentation locally.

Structure

The documentation follows a structured format for easy navigation and readability. The main sections of the documentation can be found in the pages directory:

  • index: The landing page of the documentation.
  • getting-started: Provides information on getting started with the Mpesa Pay JavaScript SDK, including installation and configuration instructions.
  • mpesaexpress: Explains how to integrate Mpesa Express into your applications for initiating STK Push requests and processing payments.
  • transactionstatus: Provides detailed instructions on integrating Transaction Status into your applications to check the status of Mpesa payments.
  • businesstocustomer: Offers information on how to integrate Business-to-Customers payments using the Mpesa Pay JavaScript SDK.
  • accountbalance: Contains instructions on retrieving the account balance for M-Pesa business accounts using the Mpesa Pay JavaScript SDK.
  • contributing.mdx: Contains guidelines for contributing to the Mpesa Pay JavaScript SDK documentation, including information on how to clone the repository, create a new branch, commit changes, and open pull requests.

Feel free to modify or add new sections as needed to enhance the documentation.

Contributing

Contributions to the Mpesa Pay JavaScript SDK documentation are welcome! If you find any errors, have suggestions for improvements, or want to contribute new sections, please follow the Contributing Guidelines.

License

The Mpesa Pay JavaScript SDK documentation is licensed under the MIT License. Make sure to review the license terms before using or contributing to the documentation.


Thank you for your interest in contributing to the Mpesa Pay JavaScript SDK documentation. We appreciate your contributions in improving the documentation and making it more accessible and helpful to the community. If you have any questions or need assistance, please don't hesitate to reach out to us. Happy documenting!