PHP code example of aslong / yun-pay

1. Go to this page and download the library: Download aslong/yun-pay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aslong / yun-pay example snippets





$app = app('yun_pay');
// 查询余额
$app->account->balance();
// 查询一条订单
$app->order->query($order_id, $channel = '银行卡');
// 银行卡下单
$app->order->realtime();
$app->order->alipay();
$app->order->wxpay();
$app->order->cancel();
$app->order->receipt();

$app->auth->idCard($cardNo, $realName);

$app->data->order($date);

$app->data->bill($date);

$app->data->record($begin_at, $end_at);

$app->invoice->stat($year);

$app->invoice->stat($year);



$app = app('yun_pay');

return $app->notify(function($message, $fail) {
    dd($message);
    return true;
    $fail('失败');

});