Browse Source

add some parameters when sending to dalianpay

master
用户名 3 years ago
parent
commit
cdd5bec922
  1. 16
      mobile/source/helpers/dalianpay/config/config.php
  2. 4
      mobile/source/helpers/dalianpay/demo/dalianpay.php
  3. 5
      mobile/wxnotify.php

16
mobile/source/helpers/dalianpay/config/config.php

@ -3,10 +3,10 @@
return array( return array(
// 机构号 商户号 // 机构号 商户号
// 'org_num' => '5503001', // 'org_num' => '5503001',
'org_num' => '563222080502LGB', 'org_num' => '100018380507D2C',
// 商户号 渠道商户号 // 商户号 渠道商户号
// 'cusid' => '10147', // 'cusid' => '10147',
'cusid' => '100018380507D2C', 'cusid' => '563222080502LGB',
// 产品 // 产品
'producp' => 'JX0002', 'producp' => 'JX0002',
// 版本 // 版本
@ -17,6 +17,14 @@
'paytype' => 'W02', // 微信js支付 'paytype' => 'W02', // 微信js支付
// 门店号 // 门店号
'branchno' => '44', 'branchno' => '44',
// 交易结果通知地址
'notify_url' => 'https://shop.heavenk.com/mobile/wxnotify.php',
// 微信子appid 商户微信号
'sub_appid' => 'wx79343915f99167e6',
// 渠道门店编号
'chnlstoreid' => '',
// 支付完成跳转
'front_url' => '',
// 终端号 // 终端号
'termcode' => '000000', 'termcode' => '000000',
// 加密方式 // 加密方式
@ -27,9 +35,9 @@
'private_key' => BASE_PATH . 'helpers/dalianpay/cert/cus_private_key.pem', 'private_key' => BASE_PATH . 'helpers/dalianpay/cert/cus_private_key.pem',
// 统一支付接口 测试地址 // 统一支付接口 测试地址
// 'pay_url' => 'https://open.dalianpay.cn/payapi/unitorder/pay', 'pay_url' => 'https://open.dalianpay.cn/payapi/unitorder/pay',
// 统一支付接口 // 统一支付接口
'pay_url' => 'https://epay.dalianpay.cn/payapi/unitorder/pay', // 'pay_url' => 'https://epay.dalianpay.cn/payapi/unitorder/pay',
// 统一扫码接口 测试地址 // 统一扫码接口 测试地址
'scan_url' => 'https://open.dalianpay.cn/payapi/unitorder/scanqrpay', 'scan_url' => 'https://open.dalianpay.cn/payapi/unitorder/scanqrpay',

4
mobile/source/helpers/dalianpay/demo/dalianpay.php

@ -90,8 +90,8 @@ class dalianpay{
'randomstr' => md5( uniqid() ), 'randomstr' => md5( uniqid() ),
// 'body' => 'pages', // 'body' => 'pages',
'acct' => $openid, 'acct' => $openid,
// 'notify_url' => '', // 交易结果通知地址 'notify_url' => $config['notify_url'], // 交易结果通知地址
// 'sub_appid' => 'wx79343915f99167e6', 'sub_appid' => $config['sub_appid'],
// 'front_url' => '', // 支付完成跳转 // 'front_url' => '', // 支付完成跳转
); );

5
mobile/wxnotify.php

@ -0,0 +1,5 @@
<?php
?>
Loading…
Cancel
Save