DEV Community

Alpha Olomi
Alpha Olomi

Posted on

Pesa SDK for PHP

Hello

Am happy to announce today we have version 0.0.1 of Pesa SDK for PHP

GitHub logo openpesa / php-pesa

Open payment integration toolkit for PHP

Pesa SDK for PHP


Version 2 | Work in Progress 🚧

Latest Version on Packagist Test documentation Hits codecov.io Total Downloads

The Pesa SDK for PHP makes it easy for developers to access OpenAPI in their PHP code, and build robust applications and software using services like Customber 2 Bussiness, Query etc.

Documentation

Take a look at the API docs here.

Getting Started

  1. Sign up for OpenAPI Portal – Before you begin, you need to sign up for an account and retrieve your credentials.

  2. Minimum requirements – To run the SDK, your system will need to meet the minimum requirements, including having PHP >= 7.1.

  3. Install the SDK – Using [Composer] is the recommended way to install the Pesa SDK for PHP. The SDK is available via [Packagist] under the openpesa/php-pesa package. If Composer is installed globally on your system, you can run the following in the base directory of your project to add the SDK as…

It supports the following features (via synchronous requests)

  • customer to business (C2B) single payment
  • business to customer (B2C) single payment
  • payment reversals (pr)
  • query transaction status
  • direct debit creation (ddc)
  • direct debit payments(ddp)

Currently, we only have SDK for PHP we are looking forward to supporting Javascript next.
Please find some documentation for the SDK, not much but its start, link at the bottom

If you have any questions or inquires, don’t hesitate

More testing is required, check and try the examples, feedback is highly appreciated,

PR are welcome, contributions are highly appreciated.

Links

Github Organisation: https://github.com/openpesa
Github repo: https://github.com/openpesa/php-pesa
Docs: https://php-pesa.netlify.app/
OpenAPI porttal: https://openapiportal.m-pesa.com

Top comments (0)