| @@ -317,14 +317,11 @@ | ||
| 317 | 317 | * @since 3.0.0 |
| 318 | 318 | */ |
| 319 | 319 | public static function get_sdk_config() { |
| 320 | 320 | $conf = [ |
| 321 | - "module" => "MakeCommerce", | |
| 322 | - "module_version" => MAKECOMMERCE_VERSION, | |
| 323 | - "platform" => "WooCommerce", | |
| 324 | - "hpos_enabled" => filter_var( get_option( 'woocommerce_custom_orders_table_enabled' ), FILTER_VALIDATE_BOOLEAN ), | |
| 325 | - "payments_enabled" => filter_var( get_option( 'mc_payments' ), FILTER_VALIDATE_BOOLEAN ), | |
| 326 | - "shipping_enabled" => filter_var( get_option( 'mc_shipping' ), FILTER_VALIDATE_BOOLEAN ) | |
| 321 | + "module" => "MakeCommerce", | |
| 322 | + "module_version" => MAKECOMMERCE_VERSION, | |
| 323 | + "platform" => "WooCommerce", | |
| 327 | 324 | ]; |
| 328 | 325 | |
| 329 | 326 | if (class_exists('WooCommerce')) { |
| 330 | 327 | $conf['platform_version'] = WC()->version; |
| @@ -330,24 +327,8 @@ | ||
| 330 | 327 | $conf['platform_version'] = WC()->version; |
| 331 | 328 | } |
| 332 | 329 | |
| 333 | 330 | return $conf; |
| 334 | - } | |
| 335 | - | |
| 336 | - /** | |
| 337 | - * Gets static url based on env | |
| 338 | - * | |
| 339 | - * @since 3.0.0 | |
| 340 | - */ | |
| 341 | - public static function get_static_url() { | |
| 342 | - | |
| 343 | - $mc_api_type = get_option( 'mc_api_mode', 'live' ); | |
| 344 | - | |
| 345 | - if ($mc_api_type === 'test') { | |
| 346 | - return 'https://static.test.maksekeskus.ee/'; | |
| 347 | - } else { | |
| 348 | - return 'https://static.maksekeskus.ee/'; | |
| 349 | - } | |
| 350 | 331 | } |
| 351 | 332 | |
| 352 | 333 | /** |
| 353 | 334 | * Enqueues javascript with parameters. |