作者 lihan
1 个管道 的构建 通过 耗费 0 秒

支付宝

... ... @@ -163,14 +163,12 @@ class IndexController extends HomeBaseController
public function alipay()
{
require_once EXTEND_PATH.'/alipaymaster/extend/alipay/Wappay.php';
$alipay = new \Wappay();
$params= [
'subject' => '购买',
'out_trade_no' => '20181017256210',
'total_amount' => 0.01,
];
$return = $alipay->pay($params);
$return = \alipay\Wappay::pay($params);
print_r($return);
}
... ...
<?php
//namespace alipay;
namespace alipay;
use think\Loader;
... ...