正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
@@ -192,7 +192,7 @@ class IndexController extends HomeBaseController | @@ -192,7 +192,7 @@ class IndexController extends HomeBaseController | ||
192 | 192 | ||
193 | require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php'; | 193 | require_once EXTEND_PATH . '/alipay/wappay/service/AlipayTradeService.php'; |
194 | require_once EXTEND_PATH . '/alipay/wappay/buildermodel/AlipayTradeWapPayContentBuilder.php'; | 194 | require_once EXTEND_PATH . '/alipay/wappay/buildermodel/AlipayTradeWapPayContentBuilder.php'; |
195 | - require EXTEND_PATH . '/alipay1/config.php'; | 195 | + require EXTEND_PATH . '/alipay/config.php'; |
196 | if (1 == 1) { | 196 | if (1 == 1) { |
197 | //商户订单号,商户网站订单系统中唯一订单号,必填 | 197 | //商户订单号,商户网站订单系统中唯一订单号,必填 |
198 | $out_trade_no = '2018101721025641'; | 198 | $out_trade_no = '2018101721025641'; |
@@ -216,16 +216,16 @@ class IndexController extends HomeBaseController | @@ -216,16 +216,16 @@ class IndexController extends HomeBaseController | ||
216 | $payRequestBuilder->setTotalAmount($total_amount); | 216 | $payRequestBuilder->setTotalAmount($total_amount); |
217 | $payRequestBuilder->setTimeExpress($timeout_express); | 217 | $payRequestBuilder->setTimeExpress($timeout_express); |
218 | 218 | ||
219 | - $config = [ | ||
220 | - 'gatewayUrl' => 'https://openapi.alipay.com/gateway.do', | ||
221 | - 'app_id' => '2018101661696470', | ||
222 | - 'merchant_private_key' => config('private_key'), | ||
223 | - 'alipay_public_key' => config('alipay_public_key'), | ||
224 | - 'charset' => 'UTF-8', | ||
225 | - 'sign_type' => 'RSA', | ||
226 | - 'return_url' => 'http://catrain.net', | ||
227 | - 'notify_url' => 'http://catrain.net' | ||
228 | - ]; | 219 | +// $config = [ |
220 | +// 'gatewayUrl' => 'https://openapi.alipay.com/gateway.do', | ||
221 | +// 'app_id' => '2018101661696470', | ||
222 | +// 'merchant_private_key' => config('private_key'), | ||
223 | +// 'alipay_public_key' => config('alipay_public_key'), | ||
224 | +// 'charset' => 'UTF-8', | ||
225 | +// 'sign_type' => 'RSA', | ||
226 | +// 'return_url' => 'http://catrain.net', | ||
227 | +// 'notify_url' => 'http://catrain.net' | ||
228 | +// ]; | ||
229 | 229 | ||
230 | $payResponse = new \AlipayTradeService($config); | 230 | $payResponse = new \AlipayTradeService($config); |
231 | $result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']); | 231 | $result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']); |
-
请 注册 或 登录 后发表评论