Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
9 years ago
Commit
190ca0ecf245fbb51ecf10f875b03715c7fe60e6
1 parent
16f60366
配置 支付回调地址
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
library/Api/Yohobuy.php
library/WebPlugin/Pay/Alibank/Service.php
library/WebPlugin/Pay/Alipay/Service.php
library/WebPlugin/Pay/weixin/lib/WxPayApi.php
library/Api/Yohobuy.php
View file @
190ca0e
...
...
@@ -27,12 +27,16 @@ class Yohobuy
const
SERVICE_URL
=
'http://service.yoho.yohoops.org/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_OLD
=
'http://api2.open.yohobuy.com/'
;
//支付回调地址
const
SERVICE_NOTIFY
=
'http://service.yoho.cn/'
;
// 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://test2.open.yohobuy.com/';
//支付回调地址
// const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';
/* 预览环境 */
// const API_URL = 'http://preapi.yoho.cn/';
...
...
library/WebPlugin/Pay/Alibank/Service.php
View file @
190ca0e
...
...
@@ -49,7 +49,7 @@ class Service extends PayAbstract
'service'
=>
$this
->
config
->
service
,
'partner'
=>
$this
->
config
->
partner
,
'_input_charset'
=>
$this
->
config
->
input_charset
,
'notify_url'
=>
Yohobuy
::
SERVICE_
URL
.
$this
->
config
->
notify_url
,
'notify_url'
=>
Yohobuy
::
SERVICE_
NOTIFY
.
$this
->
config
->
notify_url
,
'return_url'
=>
Helpers
::
url
(
$this
->
config
->
return_url
),
/* 业务参数 */
'subject'
=>
$params
->
goodsName
,
...
...
library/WebPlugin/Pay/Alipay/Service.php
View file @
190ca0e
...
...
@@ -53,7 +53,7 @@ class Service extends PayAbstract
'service'
=>
$this
->
config
->
service
,
'partner'
=>
$this
->
config
->
partner
,
'_input_charset'
=>
$this
->
config
->
input_charset
,
'notify_url'
=>
Yohobuy
::
SERVICE_
URL
.
$this
->
config
->
notify_url
,
'notify_url'
=>
Yohobuy
::
SERVICE_
NOTIFY
.
$this
->
config
->
notify_url
,
'return_url'
=>
Helpers
::
url
(
$this
->
config
->
return_url
),
/* 业务参数 */
'subject'
=>
$params
->
goodsName
,
...
...
library/WebPlugin/Pay/weixin/lib/WxPayApi.php
View file @
190ca0e
...
...
@@ -49,7 +49,7 @@ class WxPayApi
}
//异步通知url
$inputObj
->
SetNotify_url
(
Yohobuy
::
SERVICE_
URL
.
'payment/weixin_notify'
);
//异步通知url
$inputObj
->
SetNotify_url
(
Yohobuy
::
SERVICE_
NOTIFY
.
'payment/weixin_notify'
);
//异步通知url
$inputObj
->
SetAppid
(
WxPayConfig
::
APPID
);
//公众账号ID
$inputObj
->
SetMch_id
(
WxPayConfig
::
MCHID
);
//商户号
...
...
Please
register
or
login
to post a comment