Skip to content

Commit

Permalink
Merge pull request #1504 from angelleye/PFW-698
Browse files Browse the repository at this point in the history
Conflict with WooCommerce Stripe Payment Gateway : PFW-698
  • Loading branch information
kcppdevelopers committed Oct 20, 2020
2 parents 2f53352 + 8bcb32d commit 1c38f36
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,9 @@ public function ec_enqueue_scripts($is_mini_cart = false) {
$smart_js_arg = array();
$smart_js_arg['client-id'] = $this->client_id;
$smart_js_arg['currency'] = get_woocommerce_currency();
if (($funding_key = array_search('elv', $this->disallowed_funding_methods)) !== false) {
unset($this->disallowed_funding_methods[$funding_key]);
}
if ($this->disallowed_funding_methods !== false && count($this->disallowed_funding_methods) > 0) {
$smart_js_arg['disable-funding'] = implode(',', $this->disallowed_funding_methods);
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/angelleye-in-context-checkout.min-v1.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/angelleye-in-context-checkout.min-v2.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions assets/js/angelleye-in-context-checkout_v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ jQuery(function ($) {
if (typeof angelleye_in_content_param === 'undefined') {
return false;
}
if (typeof paypal === 'undefined') {
return false;
}
display_smart_button_on_cart_checkout();
display_smart_button_on_min_cart();
display_smart_button_on_product_page();
Expand Down
4 changes: 4 additions & 0 deletions assets/js/angelleye-in-context-checkout_v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ jQuery(function ($) {
return false;
}

if (typeof paypal === 'undefined') {
return false;
}

var angelleye_hide_button = function () {
$('#place_order').show();
$('.angelleye_pp_message_payment:eq(1)').hide();
Expand Down

0 comments on commit 1c38f36

Please sign in to comment.