Commit dd109a13 authored by mr.amirka's avatar mr.amirka

refactored

parent 86e7bb34
......@@ -13,24 +13,20 @@
DEFINE('LUNUPAYMENT_SERVER_NAME', $_SERVER['SERVER_NAME']);
DEFINE('LUNUPAYMENT_WIDGET_VERSION_SANDBOX', 'rc');
DEFINE('LUNUPAYMENT_WIDGET_PROCESSING_SANDBOX', 'rc');
DEFINE('LUNUPAYMENT_WIDGET_VERSION', (
LUNUPAYMENT_SERVER_NAME === 'shop.dev.lunu.io'
? 'beta'
: (
LUNUPAYMENT_SERVER_NAME === 'shop.rc.lunu.io'
? 'rc'
: 'alpha'
)
));
DEFINE('LUNUPAYMENT_PROCESSING_VERSION', (
LUNUPAYMENT_SERVER_NAME === 'shop.dev.lunu.io'
strpos(LUNUPAYMENT_SERVER_NAME, 'dev.lunu.io') !== false
? 'stage'
: (
LUNUPAYMENT_SERVER_NAME === 'shop.rc.lunu.io'
strpos(LUNUPAYMENT_SERVER_NAME, 'rc.lunu.io') !== false
? 'rc'
: 'alpha'
)
));
DEFINE('LUNUPAYMENT_WIDGET_VERSION', (
LUNUPAYMENT_PROCESSING_VERSION === 'stage'
? 'beta'
: LUNUPAYMENT_PROCESSING_VERSION
));
DEFINE('LUNUPAYMENT_CALLBACK_ENDPOINT', 'https://' . LUNUPAYMENT_SERVER_NAME . '/wp-json/lunu/payment/v1/notify');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment