...
|
...
|
@@ -161,30 +161,6 @@ class IndexController extends HomeBaseController |
|
|
}
|
|
|
}
|
|
|
|
|
|
// public function alipay()
|
|
|
// {
|
|
|
// require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php';
|
|
|
//
|
|
|
// $alipay_config = [
|
|
|
// 'gatewayUrl' => 'https://openapi.alipay.com/gateway.do',
|
|
|
// 'app_id' => '2018101661696470',
|
|
|
// 'merchant_private_key' => config('private_key'),
|
|
|
// 'alipay_public_key' => config('alipay_public_key'),
|
|
|
// 'charset' => 'UTF-8',
|
|
|
// 'sign_type' => 'RSA'
|
|
|
// ];
|
|
|
//
|
|
|
// $builder = [
|
|
|
// 'WIDsubject' => '购买',
|
|
|
// 'WIDout_trade_no' => '20181017256210',
|
|
|
// 'WIDtotal_amount' => 99,
|
|
|
// 'WIDbody' => '商品'
|
|
|
// ];
|
|
|
// $alipay = new \AlipayTradeService($alipay_config);
|
|
|
// $return = $alipay->wapPay($builder, '', '');
|
|
|
// print_r($return);
|
|
|
// }
|
|
|
|
|
|
public function alipay()
|
|
|
{
|
|
|
header("Content-type: text/html; charset=utf-8");
|
...
|
...
|
|