Download the PHP package iboxs/payment without Composer

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

2.0版本正在开发中,不要使用,不要使用,不要使用

更新注意

本项目安装方式:

composer require iboxs/payment

使用方法:

支付宝

接口 函数 备注
AlipayWeb 网页支付 不用区分手机电脑,会自动识别后调用不同接口
AlipayCode 扫码支付(二维码) 获得二维码,用户扫描二维码支付,非条码
AlipayRefund 支付宝单笔退款 可部分退款或全部退款
AlipayJsPay 支付宝Js支付 可用于多个场景,包括APP、小程序、支付宝内网页
AlipayBarCode 支付宝条码支付 条码当面付,传入条码后账户扣款
AlipayTransfer 支付宝转账到个人账户
AlipayTransferQuery 支付宝转账结果查询
参数

微信

接口 函数 备注
WxPayCode Native支付 获取支付二维码后用户扫码支付(一般用于PC端)
WxPayWap 手机网页支付 在手机浏览器内调用本接口启动微信支付
WxJsPay 微信公众号支付 微信内公众号网页调用微信启动支付
WxJsapiParams 微信小程序/APP支付 获取预支付码,后可在小程序端调用支付接口启动支付
WxRefund 微信支付退款 微信支付退款,可部分或全部退款,原路退回
WxTransfers 微信支付到零钱 使用微信支付向用户转账,直接转账到用户零钱内
参数

示例代码

支付宝示例代码:

微信支付示例代码:

QQ支付示例代码:

更新日志


All versions of payment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-openssl Version *
ext-curl Version *
ext-json 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 iboxs/payment contains the following files

Loading the files please wait ....