Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.
/ mbdpay Public archive

面包多支付(mbd.pub) PHP SDK

License

Notifications You must be signed in to change notification settings

bestony/mbdpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

面包多 Pay - PHP SDK

PHPStan Analyse

由于面包多业务调整,此 SDK 已经失效,仅用作参考

安装

使用 Composer 安装

composer require bestony/mbdpay

引入文件安装

使用命令下载文件

wget  https://raw.githubusercontent.com/bestony/mbdpay/master/src/Client.php

并在代码中使用 require_once "Client.php" 引入对应的代码

使用方式

基本用法可以参考下方代码

$client = new \Bestony\Mbdpay\Client(APPID, APPKEY);
$result = $client->wxH5pay([
            "description" => "testDescription",
            "out_trade_no" => "1234ajs",
            "amount_total" => 1
        ]);

更多详细用法,可以参考调用说明测试文件

测试

  1. 设定 APPID & APPKEY 环境变量

  2. 执行测试

composer test

更新日志

请查看 CHANGELOG 了解更新信息。

参与贡献

请查看 CONTRIBUTING 了解更多关于参与贡献的详情。

安全风险

如果你发现任何与安全相关问题,可以访问 安全策略 了解如何反馈安全问题。

贡献者

授权

The MIT License (MIT). 请查看 License File 了解更多信息。

About

面包多支付(mbd.pub) PHP SDK

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages