Skip to content

Commit

Permalink
Express Checkout - In Context Checkout Integration, ref #199
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jul 21, 2017
1 parent 41b278b commit 62724f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
12 changes: 11 additions & 1 deletion assets/js/angelleye-express-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@
})) : void 0;
});
}
}).call(this);
}).call(this);

jQuery(document).ready(function ($) {
var is_set_class = $("div").is(".express-provided-address");
if (is_set_class) {
jQuery('#express_checkout_button_chekout_page').hide();
jQuery('#express_checkout_button_text').hide();
jQuery('.woocommerce-message').hide();
jQuery('#checkout_paypal_message').hide();
}
});
8 changes: 1 addition & 7 deletions assets/js/angelleye-frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ jQuery(document).ready(function ($) {
}

if (angelleye_frontend.is_checkout == "yes") {
var is_set_class = $("div").is(".express-provided-address");
if (is_set_class) {
jQuery('#express_checkout_button_chekout_page').hide();
jQuery('#express_checkout_button_text').hide();
jQuery('.woocommerce-message').hide();
jQuery('#checkout_paypal_message').hide();
}

jQuery(".paypal_checkout_button").click(function () {
$('.woocommerce').block({
message: null,
Expand Down
7 changes: 4 additions & 3 deletions assets/js/angelleye-in-context-checkout.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
;
(function ($, window, document) {
if (angelleye_in_content_param.is_product == 'no') {

var target_url = '';

window.paypalCheckoutReady = function () {

setInterval(function () {
Expand Down Expand Up @@ -35,7 +33,7 @@


} else {

window.paypalCheckoutReady = function () {
paypal.checkout.setup(angelleye_in_content_param.payer_id, {
environment: angelleye_in_content_param.environment,
Expand Down Expand Up @@ -107,5 +105,8 @@
});
}




}
})(jQuery, window, document);

0 comments on commit 62724f5

Please sign in to comment.