Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
widget
WooCommerce
Commits
4fc5a653
Commit
4fc5a653
authored
Nov 05, 2020
by
mr.amirka
Browse files
changed dev servers
parent
7b300c27
Changes
1
Hide whitespace changes
Inline
Side-by-side
lunupayment-woocommerce/lunupayment-woocommerce.php
View file @
4fc5a653
...
...
@@ -12,10 +12,10 @@
DEFINE
(
'LUNUPAYMENT_SERVER_NAME'
,
$_SERVER
[
'SERVER_NAME'
]);
DEFINE
(
'LUNUPAYMENT_VERSION_BETA'
,
'beta'
);
DEFINE
(
'LUNUPAYMENT_VERSION'
,
(
LUNUPAYMENT_SERVER_NAME
===
'shop
2
.lunu.io'
LUNUPAYMENT_SERVER_NAME
===
'shop
.dev
.lunu.io'
?
LUNUPAYMENT_VERSION_BETA
:
(
LUNUPAYMENT_SERVER_NAME
===
'shop
1
.lunu.io'
LUNUPAYMENT_SERVER_NAME
===
'shop
.rc
.lunu.io'
?
'rc'
:
'alpha'
)
...
...
@@ -572,10 +572,8 @@ function lunu_payment_create($auth = array(
if
(
is_array
(
$data
)
&&
is_array
(
$data
[
'response'
]))
{
return
$data
[
'response'
];
}
}
else
{
lunuLogError
(
$response
,
'payment create: '
);
}
lunuLogError
(
$response
,
'payment create: '
);
return
false
;
}
...
...
@@ -604,9 +602,8 @@ function lunu_payment_check($auth = array(
if
(
is_array
(
$data
)
&&
is_array
(
$data
[
'response'
]))
{
return
$data
[
'response'
];
}
}
else
{
lunuLogError
(
$response
,
'payment check: '
);
}
lunuLogError
(
$response
,
'payment check: '
);
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment