Skip to content

Commit

Permalink
Braintree - Kount Custom, ref #989
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Feb 8, 2018
1 parent 8fc04cb commit 27cb092
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions classes/wc-gateway-braintree-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@ public function admin_options() {
production.show();
}
}).change();

jQuery('#woocommerce_braintree_enable_braintree_drop_in').change(function () {
var $kount_id_row = jQuery('.angelleye-kount-merchant-id').closest('tr');
if (jQuery(this).is(':checked')) {
if( jQuery("#woocommerce_braintree_fraud_tool option[value='kount_custom']").length == 0) {
jQuery('#woocommerce_braintree_fraud_tool').append(jQuery("<option></option>").attr("value","kount_custom").text("Kount Custom"));
}
} else {
alert('125');
jQuery('#woocommerce_braintree_fraud_tool option[value="kount_custom"]').remove();
$kount_id_row.hide();
}
}).change();


jQuery('select.angelleye-fraud-tool').change(function () {
var $kount_id_row = jQuery('.angelleye-kount-merchant-id').closest('tr');
if ('kount_custom' === jQuery(this).val()) {
Expand Down

0 comments on commit 27cb092

Please sign in to comment.