Download the PHP package znzabl/waiter without Composer
On this page you can find all versions of the php package znzabl/waiter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download znzabl/waiter
More information about znzabl/waiter
Files in znzabl/waiter
Download znzabl/waiter
More information about znzabl/waiter
Files in znzabl/waiter
Vendor znzabl
Package waiter
Short Description A powerful WeChat Alipay interface application
License MIT
Package waiter
Short Description A powerful WeChat Alipay interface application
License MIT
Please rate this library. Is it a good library?
Informations about the package waiter
waiter
第三方支付接口组件
安装
composer require znzabl/waiter
使用示例:
require_once('vendor/autoload.php');
use Waiter\Waiter;
$config = [
'app_id' => '你的appid',
'mch_id' => '你的mch_id',
'pay_key' => '你的pay_key',
'app_secret' => '你的app_secret',
'mode' => 'normal'
];
$parameter = [
'body' => '微信小程序支付',
'attach' => 'xxxxx,
'out_trade_no' => 1234231423452,
'total_fee' => 1,
'openid' => '用户的openid',
'notify_url' => '你的回调地址',
];
$encryptedData = 'zcdzcdasdcasdc';
$iv = 'asdcasddc';
$sessionKey = 'zsxcasdca';
$data = [];
//微信解密秘文
//Waiter::Wechat($config)->Login()->Support()->decryptData($encryptedData, $iv, $sessionKey, &$data);
//var_dump($data);exit;
//微信小程序支付
//$result = Waiter::Wechat($config)->Payment()->Mini()->pay($parameter);
//var_dump($result);exit;
//微信小程序获取token
//$result = Waiter::Wechat($config)->Login()->Mini()->getToken('081Zvk000XEGdL1NOb300ODYff1Zvk0G');
//var_dump($result);exit;
$config = [
'app_id' => '你的支付宝appid',
'private_key' => '你的支付宝私钥',
'public_key' => '你的支付宝公钥',
'aes_key' => '你的密文解密密钥(解密密文时使用)',
'mode' => 'normal',
'notify_url' => '你的回调地址',
];
$parameter = [
'body' => '支付宝小程序订单支付',
'subject' => '订单支付',
'attach' => 'xxxx',
'out_trade_no' => 1234231423452,
'total_amount' => 0.01,
'buyer_id' => 2088302191714811,
];
//支付宝解密秘文
//$result = Waiter::Alipay($config)->Login()->Support()->decryptData('YpPx1DhmPFKfMWMUzzchE8rTRu7yFd44yVN+9+e/ITC+rIVD1OhwJ0Ts8USaRgPO9BIv5UkI40lVhKEeyFEpBA==');
//var_dump($result);exit;
//支付宝回调验证
//$result = Waiter::Alipay($config)->Payment()->Support()->verify(['sign'=>'xzasdcasdc']);
//var_dump($result);exit;
//支付宝小程序支付
//$result = Waiter::Alipay($config)->Payment()->Mini()->pay($parameter);
//print_r($result);exit;
//支付宝小程序获取token
$result = Waiter::Alipay($config)->Login()->Mini()->getToken('f5326b49b82c4913bbe3978d6bc7WX81');
var_dump($result);exit;
All versions of waiter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
ext-openssl Version *
ext-simplexml Version *
ext-libxml Version *
ext-json Version *
ext-bcmath Version *
ext-openssl Version *
ext-simplexml Version *
ext-libxml Version *
ext-json Version *
ext-bcmath Version *
The package znzabl/waiter contains the following files
Loading the files please wait ....