Skip to content

Commit

Permalink
Express Checkout - Smart Buttons, ref #1106
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Apr 26, 2018
1 parent d2009fd commit 8a2cce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'), $this->version, false);
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-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',
Expand Down
2 changes: 1 addition & 1 deletion paypal-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(), null, true);
wp_enqueue_script('angelleye-in-context-checkout-js-admin', 'https://www.paypalobjects.com/api/checkout.min.js', array(), '', true);
}
wp_enqueue_script( 'angelleye_admin');
}
Expand Down

0 comments on commit 8a2cce8

Please sign in to comment.