Skip to content

Commit

Permalink
Merge branch 'feature-plat-198' into 'develop'
Browse files Browse the repository at this point in the history
[Fix] prevent duplicated charge for brick

See merge request Modules/woocommerce!62
  • Loading branch information
masonpham committed Apr 7, 2022
2 parents 963fdcb + d81450d commit 65687f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ View our full installation guide: <https://docs.paymentwall.com/modules/woocomme

== Changelog ==

= v1.8.1 [04/07/2022] =
* Fix duplicated charge for Brick 1.6

= v1.8.0 [21/09/2021] =
* Upgrade brick version from 1.4 to 1.6

Expand Down
2 changes: 1 addition & 1 deletion src/paymentwall-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin Name: Paymentwall for WooCommerce
* Plugin URI: https://docs.paymentwall.com/modules/woocommerce
* Description: Official Paymentwall module for WordPress WooCommerce.
* Version: 1.8.0
* Version: 1.8.1
* Author: The Paymentwall Team
* Author URI: http://www.paymentwall.com/
* Text Domain: paymentwall-for-woocommerce
Expand Down
6 changes: 4 additions & 2 deletions src/templates/brick/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
return true;
});

$(document.body).on('checkout_error', function () {
$(document.body).unbind('checkout_error').on('checkout_error', handlePreValidation)

function handlePreValidation() {
var error_count = $('.woocommerce-error li').length;
$('.woocommerce-error').css('display', 'block');

Expand Down Expand Up @@ -50,7 +52,7 @@
}
});
}
});
}

if (haveToken && !$('#wc-brick-payment-token-new').is(':checked')) {
$('#brick-form-payment').hide()
Expand Down

0 comments on commit 65687f4

Please sign in to comment.