Download the PHP package yanlongli/papayment without Composer

On this page you can find all versions of the php package yanlongli/papayment. 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 papayment

PHP 聚合支付客户端

主要针对小程序场景,也包含部分业务需要的其它支付方式没有移除。

引入方式

composer require yanlong-li/papayment

当前支持

使用案例

说明

  1. 字节跳动(头条&抖音)、快手等支付是担保支付走收银台,实际还是要绑定或单独开通微信、支付宝等支付方式,这里不做区分,就以平台命名支付。 如字节跳动支付、快手支付,或者:字节跳动收银台、快手收银台,都是一个意思。
  2. 并不是开了微信、支付宝支付就不需要单独申请了,以字节小程序为例,需要在字节平台开通单独的结算账户。快手好像是绑定现有账户即可,具体是同事处理的我没管开通这块。
  3. 小程序基本都要获取用户身份来下单,要先登录获取用户授权,叫法不同:user_id、openid,还有的是给 code 在服务端通过 code2session 获取。如果不了解可以查阅各平台的文档。(百度、字节跳动不需要,微信、快手、支付宝需要)
  4. 当前微信sdk使用的是v2接口,后续将迁移至v3

更新日志

2022年2月23日
    初始化仓库

All versions of papayment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^6.0||^7.0
alipaysdk/easysdk Version ^2.0
ext-json Version *
ext-openssl Version *
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 yanlongli/papayment contains the following files

Loading the files please wait ....