diff --git a/mobile/source/helpers/dalianpay/demo/dalianpay.php b/mobile/source/helpers/dalianpay/demo/dalianpay.php index a126453..338f367 100644 --- a/mobile/source/helpers/dalianpay/demo/dalianpay.php +++ b/mobile/source/helpers/dalianpay/demo/dalianpay.php @@ -71,53 +71,53 @@ class dalianpay{ // echo "reqsn is " . $reqsn . "\n\r"; // echo "uniqid reqsn is " . uniqid($reqsn_prefix) . "\n\r"; // echo "trxamt is " . $trxamt . "\n\r"; + // $trade_data = array( + // 'orgid' => $config['org_num'], + // // 'orgid' => '5503001', + // 'cusid' => $config['cusid'], + // // 'cusid' => '10147', + // 'branchno' => $config['branchno'], + // // 'branchno' => '44', + // 'version' => $config['version'], + // // 'version' => '11', + // // jsapi支付不需要termcode + // 'termcode' => $config['termcode'], + // 'trxamt' => strval($trxamt), // total_fee bug: need:string supply:int + // // 'trxamt' => '180000', // total_fee + // 'reqsn' => $reqsn, // 交易订单号 + // // 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 + // 'producp' => $config['producp'], + // 'transtype' => $config['transtype'], // 微信支付 + // 'paytype' => $config['paytype'], // 微信js支付 + // 'randomstr' => md5( uniqid() ), + // 'body' => 'pages', + // // 'acct' => $openid, + // 'notify_url' => $config['notify_url'], // 交易结果通知地址 + // // 'limit_pay' => $config['limit_pay'], + // // 'sub_appid' => $config['sub_appid'], + // // 'front_url' => $config['front_url'], // 支付完成跳转 + // ); + // echo "\r\n test \r\n"; + $trade_data = array( - 'orgid' => $config['org_num'], - // 'orgid' => '5503001', - 'cusid' => $config['cusid'], - // 'cusid' => '10147', - 'branchno' => $config['branchno'], - // 'branchno' => '44', - 'version' => $config['version'], - // 'version' => '11', - // jsapi支付不需要termcode + 'orgid' => '100018380507D2C', + 'cusid' => '100018380507D2C', + 'branchno' => '401', 'termcode' => $config['termcode'], - 'trxamt' => strval($trxamt), // total_fee bug: need:string supply:int - // 'trxamt' => '180000', // total_fee - 'reqsn' => $reqsn, // 交易订单号 + 'version' => '11', + 'trxamt' => '1', // total_fee // 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 - 'producp' => $config['producp'], - 'transtype' => $config['transtype'], // 微信支付 - 'paytype' => $config['paytype'], // 微信js支付 + 'reqsn' => $reqsn, // 交易订单号 + 'producp' => 'JX0002', + 'transtype' => 'JSP501', // 微信支付 + 'paytype' => 'W02', // 微信js支付 'randomstr' => md5( uniqid() ), 'body' => 'pages', // 'acct' => $openid, 'notify_url' => $config['notify_url'], // 交易结果通知地址 - // 'limit_pay' => $config['limit_pay'], - // 'sub_appid' => $config['sub_appid'], - // 'front_url' => $config['front_url'], // 支付完成跳转 + // 'sub_appid' => 'wx79343915f99167e6', + // 'front_url' => '', // 支付完成跳转 ); - // echo "\r\n test \r\n"; - - // $trade_data = array( - // 'orgid' => '5503001', - // 'cusid' => '10147', - // 'branchno' => '44', - // // 'termcode' => $config['termcode'], - // 'version' => '11', - // 'trxamt' => '600', // total_fee - // // 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 - // 'reqsn' => $reqsn, // 交易订单号 - // 'producp' => 'JX0002', - // 'transtype' => 'JSP501', // 微信支付 - // 'paytype' => 'W02', // 微信js支付 - // 'randomstr' => md5( uniqid() ), - // // 'body' => 'pages', - // 'acct' => $openid, - // // 'notify_url' => '', // 交易结果通知地址 - // // 'sub_appid' => 'wx79343915f99167e6', - // // 'front_url' => '', // 支付完成跳转 - // ); // 生成签名 $sign = $Base->Crypt->makeSign($trade_data);