...
|
...
|
@@ -163,12 +163,15 @@ class IndexController extends HomeBaseController |
|
|
|
|
|
public function alipay()
|
|
|
{
|
|
|
require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
|
|
$params = [
|
|
|
'subject' => '购买',
|
|
|
'out_trade_no' => '20181017256210',
|
|
|
'total_amount' => 0.01,
|
|
|
];
|
|
|
$return = \alipay\Wappay::pay($params);
|
|
|
|
|
|
$alipay = new \AlipayTradeService();
|
|
|
$return = $alipay->wapPay('', '', '');
|
|
|
print_r($return);
|
|
|
}
|
|
|
|
...
|
...
|
|