Download the PHP package zhangv/union-pay without Composer
On this page you can find all versions of the php package zhangv/union-pay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package union-pay
UnionPay - 银联支付
simplest union pay - no dependency to any library, simple enough to let you hack.
Feature
- B2C - 在线网关支付
- Wap - 手机网页支付(WAP支付)
- App - App/控件支付
- B2B - 企业网银支付
- Direct - 无跳转标准版
- Token - 无跳转Token版
- Qrcode - 二维码支付
- DirectDebit - 代收
- Charge - 便民缴费产品
- 刷脸支付 (TODO)
- 跨境电商海关申报(TODO)
Install
or
add:
in composer.json
Step 1: config.php - 配置
Step 2: pay.php - 支付
Step 3: payreturn.php - 支付完成前台返回
Step 4: paynotify.php - 支付完成后台通知
FAQ
- 关于测试环境:有时候会报验签错误,一般的原因是证书错误或者参数拼接,如果确认二者没错,那么可能是因为你的商户号在银联测试环境中不生效,这种时候需要联系银联的客服。也可以直接用生产环境的证书测试交易,如果可以正常交易,那么测试交易这步也可以不做。
- 关于测试用例:目前的测试用例依赖银联的测试环境,但并不是很稳定,经常会有返回错误的情况。后续可能考虑改成模拟数据。
All versions of union-pay with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
ext-json Version *
ext-curl Version *
ext-simplexml Version *
ext-openssl Version *
ext-json Version *
ext-curl Version *
ext-simplexml Version *
ext-openssl Version *
The package zhangv/union-pay contains the following files
Loading the files please wait ....