...
|
...
|
@@ -194,7 +194,6 @@ class IndexController extends HomeBaseController |
|
|
require_once EXTEND_PATH . '/alipay/wappay/buildermodel/AlipayTradeWapPayContentBuilder.php';
|
|
|
//require dirname(__FILE__) . DIRECTORY_SEPARATOR . './../config.php';
|
|
|
if (1 == 1) {
|
|
|
echo 1;
|
|
|
//商户订单号,商户网站订单系统中唯一订单号,必填
|
|
|
$out_trade_no = '2018101721025641';
|
|
|
|
...
|
...
|
@@ -210,7 +209,7 @@ class IndexController extends HomeBaseController |
|
|
//超时时间
|
|
|
$timeout_express = "1m";
|
|
|
|
|
|
$payRequestBuilder = new AlipayTradeWapPayContentBuilder();
|
|
|
$payRequestBuilder = new \AlipayTradeWapPayContentBuilder();
|
|
|
$payRequestBuilder->setBody($body);
|
|
|
$payRequestBuilder->setSubject($subject);
|
|
|
$payRequestBuilder->setOutTradeNo($out_trade_no);
|
...
|
...
|
@@ -226,7 +225,7 @@ class IndexController extends HomeBaseController |
|
|
'sign_type' => 'RSA'
|
|
|
];
|
|
|
|
|
|
$payResponse = new AlipayTradeService($config);
|
|
|
$payResponse = new \AlipayTradeService($config);
|
|
|
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
|
|
|
|
|
|
print_r($result);
|
...
|
...
|
|