Download the PHP package liuyuit/xy-pay-sdk without Composer

On this page you can find all versions of the php package liuyuit/xy-pay-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package xy-pay-sdk

Pay

Scrutinizer Code Quality Build Status Latest Stable Version Total Downloads Latest Unstable Version License

该文档为 v2.x 版本,如果您想找 v1.x 版本文档,请点击https://github.com/yansongda/pay/tree/v1.x

注意:v1.x 与 v2.x 版本不兼容

开发了多次支付宝与微信支付后,很自然产生一种反感,惰性又来了,想在网上找相关的轮子,可是一直没有找到一款自己觉得逞心如意的,要么使用起来太难理解,要么文件结构太杂乱,只有自己撸起袖子干了。

!!请先熟悉 支付宝/微信 说明文档!!请具有基本的 debug 能力!!

欢迎 Star,欢迎 PR!

laravel 扩展包请 传送至这里 yii 扩展包请 传送至这里

QQ交流群:690027516

特点

运行环境

php5 请使用 v1.x 版本https://github.com/yansongda/pay/tree/v1.x

支持的支付方法

1、支付宝

method 描述
web 电脑支付
wap 手机网站支付
app APP 支付
pos 刷卡支付
scan 扫码支付
transfer 帐户转账
mini 小程序支付

2、微信

method 描述
mp 公众号支付
miniapp 小程序支付
wap H5 支付
scan 扫码支付
pos 刷卡支付
app APP 支付
transfer 企业付款
redpack 普通红包
groupRedpack 分裂红包

支持的方法

所有网关均支持以下方法

安装

使用说明

支付宝

微信

事件系统

请见详细文档

详细文档

详细说明文档

错误

如果在调用相关支付网关 API 时有错误产生,会抛出 GatewayException,InvalidSignException 错误,可以通过 $e->getMessage() 查看,同时,也可通过 $e->raw 查看调用 API 后返回的原始数据,该值为数组格式。

所有异常

代码贡献

由于测试及使用环境的限制,本项目中只开发了「支付宝」和「微信支付」的相关支付网关。

如果您有其它支付网关的需求,或者发现本项目中需要改进的代码,欢迎 Fork 并提交 PR!

赏一杯咖啡吧

pay

LICENSE

MIT


All versions of xy-pay-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
ext-openssl Version *
ext-simplexml Version *
ext-libxml Version *
ext-json Version *
ext-bcmath Version *
yansongda/supports Version ^2.0
symfony/http-foundation Version ^4.0 || ^5.0.7
symfony/event-dispatcher Version ^4.0 || ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package liuyuit/xy-pay-sdk contains the following files

Loading the files please wait ....