Created
May 18, 2018 08:06
-
-
Save vanbo/9f9d793caa131ed08a0d86facf975c0b to your computer and use it in GitHub Desktop.
Psigate Show Only HTML API Option
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_footer', 'prefix_hide_the_card_form' ); | |
function prefix_hide_the_card_form() { | |
// Checkout or the Pay page | |
if ( is_checkout() || is_checkout_pay_page() ) { | |
?> | |
<style> | |
.payment_method_psigate div#credit_card_info { | |
display: none !important; | |
} | |
div#psigate_payment_choices_wrapper { | |
display: none; | |
} | |
</style> | |
<script type="text/javascript"> | |
(function ($) { | |
$(document).ready(function () { | |
$('#order_review #psigate_payment_choices_wrapper #psigate_interac_online_choice').click(); | |
}); | |
$(document.body).on('updated_checkout', function () { | |
$('#order_review #psigate_payment_choices_wrapper #psigate_interac_online_choice').click(); | |
}); | |
})(jQuery); | |
</script> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
Is there any way to prevent wc paytrace extension from automatically capturing previously authorized transactions?
I am in a big trouble with this utility.