...
|
...
|
@@ -164,7 +164,7 @@ class IndexController extends HomeBaseController |
|
|
public function alipay()
|
|
|
{
|
|
|
require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
|
|
$params = [
|
|
|
$builder = [
|
|
|
'WIDsubject' => '购买',
|
|
|
'WIDout_trade_no' => '20181017256210',
|
|
|
'WIDtotal_amount' => 0.01,
|
...
|
...
|
@@ -180,7 +180,7 @@ class IndexController extends HomeBaseController |
|
|
'sign_type' => 'RSA'
|
|
|
];
|
|
|
$alipay = new \AlipayTradeService($alipay_config);
|
|
|
$return = $alipay->wapPay($params, '', '');
|
|
|
$return = $alipay->wapPay($builder, '', '');
|
|
|
print_r($return);
|
|
|
}
|
|
|
|
...
|
...
|
|