...
|
...
|
@@ -170,15 +170,15 @@ class IndexController extends HomeBaseController |
|
|
'total_amount' => 0.01,
|
|
|
];
|
|
|
|
|
|
$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'
|
|
|
];
|
|
|
$alipay = new \AlipayTradeService($alipay_config);
|
|
|
// $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'
|
|
|
// ];
|
|
|
$alipay = new \AlipayTradeService();
|
|
|
$return = $alipay->wapPay($params, '', '');
|
|
|
print_r($return);
|
|
|
}
|
...
|
...
|
|