All Projects → openpesa → php-pesa

openpesa / php-pesa

Licence: MIT license
Open payment integration toolkit for PHP

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-pesa

python-daraja
Python Wrapper for interacting with the MPESA Daraja API. More Features to be implemented
Stars: ✭ 20 (-23.08%)
Mutual labels:  mpesa, mpesa-api, mpesa-payments
pesa-js
Pesa SDK
Stars: ✭ 19 (-26.92%)
Mutual labels:  tanzania, mpesa, pesa-sdk
mpesa-rest-api
mpesa rest api converts the mpesa api to a RESTful API that is easy for developers to use instead of the current SOAP web service provided by mpesa.
Stars: ✭ 24 (-7.69%)
Mutual labels:  mpesa, mpesa-api
sapamapay
New Safaricom MPESA (Daraja) API
Stars: ✭ 31 (+19.23%)
Mutual labels:  mpesa, mpesa-api
mpesa-dart
A dart wrapper around mpesa daraja api
Stars: ✭ 19 (-26.92%)
Mutual labels:  mpesa, mpesa-api
tz-mpesa-ussd-push
Vodacom Tanzania USSD Push API Client
Stars: ✭ 18 (-30.77%)
Mutual labels:  tanzania, mpesa
safaricom-daraja-nodejs
Standalone M-Pesa payments service using the new Daraja Payment API by Safaricom.
Stars: ✭ 31 (+19.23%)
Mutual labels:  mpesa, mpesa-api
flink-client
Java library for managing Apache Flink via the Monitoring REST API
Stars: ✭ 48 (+84.62%)
Mutual labels:  openapi
arcus.webapi
Web API development with Microsoft Azure in a breeze.
Stars: ✭ 19 (-26.92%)
Mutual labels:  openapi
OpenAPI-Viewer
OpenApi viewer Implemented using Vue
Stars: ✭ 93 (+257.69%)
Mutual labels:  openapi
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (+500%)
Mutual labels:  openapi
tinyspec
Simple syntax for describing REST APIs
Stars: ✭ 95 (+265.38%)
Mutual labels:  openapi
awesome-integration
A curated list of awesome system integration software and resources.
Stars: ✭ 117 (+350%)
Mutual labels:  openapi
Chowder
Chowder for Android M-Pesa payments.
Stars: ✭ 31 (+19.23%)
Mutual labels:  mpesa-api
openapi-definitions
OpenAPI Definitions
Stars: ✭ 30 (+15.38%)
Mutual labels:  openapi
aws2openapi
Amazon Web Services API description to OpenAPI 3.0 definition
Stars: ✭ 45 (+73.08%)
Mutual labels:  openapi
daf-dataportal-backend
Backend per il nuovo frontend (in sviluppo) di dati.gov.it
Stars: ✭ 17 (-34.62%)
Mutual labels:  openapi
symmetric
A powerful tool to enable super fast module-to-API transformations. Learn in minutes, implement in seconds. Batteries included.
Stars: ✭ 65 (+150%)
Mutual labels:  openapi
yomo-metaverse-workplace-nextjs
Open-source Metaverse Workplace (Virtual Office) with YoMo, Macrometa, Agora.io, Next.js and other Geo-distributed System Tech Stacks.
Stars: ✭ 43 (+65.38%)
Mutual labels:  hackertoberfest
aliyun-openapi-sdk-net-core
aliyun open api sdk for .net core 2.0
Stars: ✭ 17 (-34.62%)
Mutual labels:  openapi

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

    composer require openpesa/pesa

    Please see the Installation section of the User Guide for more detailed information about installing the SDK through Composer and other means.

  4. Using the SDK – The best way to become familiar with how to use the SDK is to read the User Guide.

Usage

Quick Examples

require 'vendor/autoload.php';

use Openpesa\SDK\Pesa;

// Intiate with credentials
$pesa = new Pesa([
            'api_key' => 'YOUR_API_KEY',
            'public_key' => 'PUBLIC_KEY',
            'client_options' => [],
        ],'sandbox');

// Setup the transaction
$data = [
    'input_Amount' => '10000',
    'input_Country' => 'TZN',
    'input_Currency' => 'TZS',
    'input_CustomerMSISDN' => '255766303775',
    'input_ServiceProviderCode' => '000000',
    'input_ThirdPartyConversationID' => 'rerekf',
    'input_TransactionReference' => rand(),
    'input_PurchasedItemsDesc' => 'Test Two Item'
];

// Execute
$result = $pesa->c2b($data);

// Print results
var_dump($result);

For more example check pesa-demo-example.

Testing

composer test

Opening Issues

If you have a feature requrest or you encounter a bug, please file an issue on our issue tracker on GitHub.

Resources

  • User Guide – For both getting started and in-depth SDK usage information
  • API Docs – For details about operations, parameters, and responses
  • Blog – Tips & tricks, articles, and announcements
  • Sample Project - A quick, sample project to help get you started
  • Issues – Report issues, submit pull requests, and get involved
  • @openpesa – Follow us on Twitter

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please review our CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].