This is zeno pay php libray, allowing easy intergration of zeno pay in php projects.
Install zeno pay library using composer.
cd myphp-project
composer require ms3c/zenopay
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
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;
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.