DEV Community

loading...

Pesa SDK for PHP

Alpha Olomi
A software engineer aimed at helping other using software technologies.
ใƒป1 min read

Hello

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

GitHub logo openpesa / php-pesa

Open payment processing API for PHP

Pesa SDK for PHP

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 a dependency:

    composer require openpesa/pesa
    Enter fullscreen mode Exit fullscreen mode

    Please seeโ€ฆ

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

Discussion (0)