diff --git a/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php b/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php index 33419c78b..76f11c98a 100644 --- a/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php +++ b/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php @@ -500,7 +500,7 @@ public function ec_enqueue_scripts_product_page($is_mini_cart = false) { $cancel_url = !empty($this->cancel_page) ? get_permalink($this->cancel_page) : wc_get_cart_url(); $allowed_funding_methods_json = json_encode(array_values(array_diff($this->allowed_funding_methods, $this->disallowed_funding_methods))); $disallowed_funding_methods_json = json_encode($this->disallowed_funding_methods); - wp_enqueue_script('angelleye-in-context-checkout-js', 'https://www.paypalobjects.com/api/checkout.min.js', array('jquery'), '', false); + wp_enqueue_script('angelleye-in-context-checkout-js', 'https://www.paypalobjects.com/api/checkout.min.js', array('jquery'), null, false); wp_enqueue_script('angelleye-in-context-checkout-js-frontend', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/js/angelleye-in-context-checkout.js', array('jquery'), $this->version, false); wp_localize_script('angelleye-in-context-checkout-js-frontend', 'angelleye_in_content_param', array( 'environment' => ( $this->testmode == true) ? 'sandbox' : 'production', diff --git a/paypal-for-woocommerce.php b/paypal-for-woocommerce.php index ea5ae9d38..d8f190a2e 100644 --- a/paypal-for-woocommerce.php +++ b/paypal-for-woocommerce.php @@ -302,7 +302,7 @@ public function admin_scripts() ); wp_localize_script( 'angelleye_admin', 'angelleye_admin', $translation_array ); if( !empty($_GET['tab']) && !empty($_GET['section']) && $_GET['tab'] == 'checkout' && $_GET['section'] == 'paypal_express') { - wp_enqueue_script('angelleye-in-context-checkout-js-admin', 'https://www.paypalobjects.com/api/checkout.min.js', array(), '', true); + wp_enqueue_script('angelleye-in-context-checkout-js-admin', 'https://www.paypalobjects.com/api/checkout.min.js', array(), null, true); } wp_enqueue_script( 'angelleye_admin'); }