mkorkmaz/msu-php-sdk
Composer 安装命令:
composer require mkorkmaz/msu-php-sdk
包简介
Unofficial PHP SDK of MerchantSafe Unipay API by tr.asseco.com
README 文档
README
MerchantSafe Unipay (MSU) is an online payment solution developed by Asseco SEE Turkey.
Installation
You need Composer to install MerchantSafe Unipay PHP SDK
This library requires PHP 7.0 or later.
composer require mkorkmaz/msu-php-sdk
Documentation
You can see detailed documentation at https://mkorkmaz.github.io/msu-php-sdk-doc/
Basic Usage
$env = 'https://test.merchantsafeunipay.com/msu/api/v2'; $merchant = 'COMPANYNAME'; // Given by Asseco $merchantUser = 'apiuser@companyname.com'; // Created on MSU Panel $merchantPassword = 'u+B56?mcjh23'; // Created on MSU Panel $client = MerchantSafeUnipay\SDK\ClientBuilder::create() ->setEnvironment($env, $merchant , $merchantUser, $merchantPassword) ->setLogger() ->build(); $args = [ 'MERCHANTPAYMENTID' => $orderPaymetId, 'CUSTOMER' => '1', 'AMOUNT' => 123.50, 'CURRENCY' => 'TRY', 'CUSTOMEREMAIL' => 'mehmet@github.com', 'CUSTOMERNAME' => 'Mehmet Korkmaz', 'CUSTOMERIP' => '127.0.0.1', 'CARDPAN' => '5406675406675403', // Test Card Number 'CARDEXPIRY' => '12.30', 'NAMEONCARD' => 'MEHMET KORKMAZ', 'CARDCVV' => '000' ]; $response = $client->financialTransactions('sale', $args); echo $response['data']['responseCode']; // prints '00' which means transaction has been done successfully.
Actions
- Financial Transactions
- Approve Actions
- Reject Actions
- Session
- Pay by Link Payment Actions
- Recurring Plan Actions
- Recurring Plan Card Actions
- Recurring Plan Actions
- Payment Type
- Payment Policy
- Message Content
- e-Wallet Actions
- Merchant Actions
- Merchant User Actions
- Dealer Actions
- Dealer Type Actions
- Dealer Payment System Type Actions
- Query
Disclaimer
- MerchantSafe Unipay (MSU) is trademark of Asseco SEE Turkey
- I am not affiliated with Asseco SEE Turkey
TODO
- Integration tests of Actions (At least %80 Code Coverage)
- Argument combinations for the actions will be implemented
mkorkmaz/msu-php-sdk 适用场景与选型建议
mkorkmaz/msu-php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83 次下载、GitHub Stars 达 10, 最近一次更新时间为 2017 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sdk」 「asseco」 「msu」 「MerchantSafeUnipay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mkorkmaz/msu-php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mkorkmaz/msu-php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mkorkmaz/msu-php-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Omnipay extension for NestPay (Asseco) - Supports 12 Turkish banks
Omnipay extension for Payten (Merchant Safe Unipay) - supports Payten, Paratika, VakifPays, ZiraatPay
PHP SDK for the Enconvert file conversion API
支付宝开放平台v3协议文档,支持最新版PHP8+
Merchant-side PHP SDK for YoPay Pay Open API.
SDK oficial da API AurePay para PHP (tipado via OpenAPI)
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-19