stephencoduor/omnipay-mtn
Composer 安装命令:
composer require stephencoduor/omnipay-mtn
包简介
MTN CAM mobile money driver gateway for Omnipay V2.0 payment processing library
README 文档
README
MTN Mobile money driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements MTN Mobile money support for Omnipay.
Note
This release is scurrently unstable but will soon be released on a stable branch when the fix is applied. If you seek to use this package urgently, please contact author me
Installation
Omnipay is installed via Composer. To install, go to your project root directory and simply run :
$ composer require stephencoduor/omnipay-mtn
Then run composer update to fetch it
Basic Usage
The following methods are provided by this package:
- purchase
use Omnipay\Omnipay;
$gateway = Omnipay::create('Momoc');
$config = [
'providerCallbackHost' =>'http://mycallback',
'amount' => 100.00, //amount the client should pay
'api_user' => '', //your provided profile apiuser
'api_key' => '', //your provided profile api key
'subscription_key' => '', //your provided subscription key
];
$gateway->authorize($config);
$response = $gateway->purchase($config)->send();
$transactionInfo = $response->getMessage();
//an array containing transaction data
if($response->isSuccessful()){
//save transaction to database and notify the user
}else{
//get error from the message and notify the user
//
}
Support
If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.
If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request. "# omnipay-mtn-v2.0"
stephencoduor/omnipay-mtn 适用场景与选型建议
stephencoduor/omnipay-mtn 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「money」 「mobile」 「gateway」 「momoc」 「omnipay 2.0 MTN gateway」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 stephencoduor/omnipay-mtn 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stephencoduor/omnipay-mtn 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 stephencoduor/omnipay-mtn 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Beyonic PHP Library
The skeleton application for NativePHP for Mobile.
PHP SDK for Mobile Message SMS API
The Payum Yandex Money gateway
Handles currency for Laravel 5.8
The Unifonic integration for the Yii framework
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-03