katysoft/katypesa
Composer 安装命令:
composer require katysoft/katypesa
包简介
CRDB API gateway for payment
README 文档
README
How to Install
- First, Make sure you Download the Latest release of this application through the following link KatyPESA releases
- Then, After you have downloaded Unzip and place the application folder wherever you wish.
How to Use
-
For registering the transaction
<?php include "/path/to/katyPESA_class"; $payload = array( "service" => "ADD", "corporate_id" => "XXXXXXX", "corporate_id2" => "XXX", "corporate_name" => "XXXXX XXXXX XXX", "customer_name" => "XXXX XXXX", "paymentReference" => "XXXXXXXXXXX", "branch_name" => "XXXX", "paymentType" => "1", "mobile_number" => "255XXXXXXXXX", "token_id" => "XXXXXXXXXXXXXXX", "currency" => "TZS", "amount" => "XXXX", "expired" => "0", "expire_Date" => "", "amountType" => "FIXED | FLEXIBLE", "notification_url" => "", "notify_method" => "", // XML | JSON ); try { $katypesa = new katyPESA( "your_encryption_key", "your_access_token", "private_key_password", "public_key_password", "path/to/private_certificate", "path/to/public_certificate"); $katypesa->setEndPoint("URL", $payload); $katypesa->sendAPI(); } catch (Error $e) { echo $e->getMessage(); } ?>
For more information please check ./examples folder And Make sure you have the Certificates
Please don't hesitate to contact us directly via:
Email us - info@katysoft.co.tz Phone # - +255 782 030 845, +255 718 327 770
Happy Coding 😋
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-12-13