Skip to content

Instantly share code, notes, and snippets.

@vanbo
Created May 18, 2018 08:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanbo/9f9d793caa131ed08a0d86facf975c0b to your computer and use it in GitHub Desktop.
Save vanbo/9f9d793caa131ed08a0d86facf975c0b to your computer and use it in GitHub Desktop.
Psigate Show Only HTML API Option
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
}
}
@noydarly
Copy link

noydarly commented Jun 8, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment