loucov/laravel-moncash-api
最新稳定版本:v2.0.0
Composer 安装命令:
composer require loucov/laravel-moncash-api
包简介
Laravel MonCash Api
README 文档
README
Laravel Moncash API
This is the Laravel Moncash API that allows php's developers to interract with the MonCash payment facility on their website.
Install
Via Composer
composer require loucov/laravel-moncash-api
Publish moncash File config
php artisan vendor:publish --tag=moncash-config
Update .env file
MONCASH_DEBUG_MODE = true //true debug mode and false live mode MONCASH_CLIENT_ID = //client id MONCASH_SECRET_KEY = //secret key MONCASH_BUSINESS_KEY = //business key (optional)
Usage
$moncash = new MoncashApi();
Methode List
For payment
$reponse =
$amount = 1000; // Amount $orderId = "123456789"; // Your orderId $response = $moncash->payment($amount, $orderId); //return object
If success, response object data:
"mode": "sandbox"
"path": "/Api/v1/CreatePayment"
"payment_token": ....
"timestamp": 1709736158019
"status": 202
"redirect": ... // Redirect link
If error
Security
If you discover any security related issues, please email covilloocko@gmail.com instead of using the issue tracker.
Credits
- [Louco COVIL][ http://www.linkedin.com/in/loucov]
License
To be filled by LouCov
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-06
