Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

可能是基于 hyperf 的最优雅的支付宝、微信、银联支付 SDK 了

License

NotificationsYou must be signed in to change notification settings

yansongda/hyperf-pay

Repository files navigation

Logo

运行环境

  • php >= 8.0
  • composer
  • hyperf >= 3.0

安装

composer require yansongda/hyperf-pay:~1.7.0

说明

发布配置文件

php bin/hyperf.php vendor:publish yansongda/hyperf-pay

使用

<?phpdeclare(strict_types=1);namespaceApp\Controller;useYansongda\HyperfPay\Pay;useHyperf\HttpServer\Annotation\AutoController;/** * @AutoController() */class IndexControllerextends AbstractController{publicfunctionindex(Pay$pay)    {return$pay->alipay()->web(['out_trade_no' =>''.time(),'total_amount' =>'0.01','subject' =>'yansongda 测试 - 1',        ]);    }}

详细文档

https://pay.yansongda.cn

About

可能是基于 hyperf 的最优雅的支付宝、微信、银联支付 SDK 了

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp