ms3c/zenopay

Zeno Pay africa client Library

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ms3c/zenopay

v0.9.0 2025-01-16 16:20 UTC

This package is auto-updated.

Last update: 2025-12-16 18:18:43 UTC


README

This is zeno pay php libray, allowing easy intergration of zeno pay in php projects.

Installation

Install zeno pay library using composer.

  cd myphp-project
  composer require ms3c/zenopay

Environment Variables

To use this library, you will need to add the following environment variables to your .env file, see in example folder.

ZENO_PAY_WEBHOOK

ZENO_PAY_API_KEY

ZENO_PAY_API_SECRET

ZENO_PAY_ACCOUNT_ID

Usage

Code example on how to use the library.

<?php
require_once 'vendor/autoload.php';

$client = new ms3c\Lib\Zenopay();

$orderData = [
    'buyer_email' => 'john.doe@gmail.com',
    'buyer_name' => 'John Doe',
    'buyer_phone' => '0755100000',
    'amount' => 10000,
];

$paymnets = $client->makePayment($orderData);
echo $paymnets;
$order = json_decode($paymnets->getContents(), true);

//$status = $client->checkStatus($order['order_id']);

//echo $status;

Documentation

Documentation

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

License

GNU GPL v3 or later

Related Projects