PageSourceSearch

https://www.hypervibe.com/au/wp-content/cache/min/2/au/wp-content/…/js/zip_order_button.js?ver=1781703864

js hypervibe.com collected 2026-09-24 10:43:59 UTC 2,254 bytes, 2 lines download raw bytes

1(function($){$(document).ready(function(){$("#place_order").on('click',function(e){var zipMoneyErrorDiv=$("#zipMoneyErrorDiv");var zipMoneyInfoDiv=$("#zipMoneyInfoDiv");zipMoneyErrorDiv.hide();zipMoneyInfoDiv.hide();var paymentMethod=$('form[name="checkout"] input[name="payment_method"]:checked').val();var checkoutId=null;if(paymentMethod=="zipmoney"){Zip.Checkout.init({redirect:"<?php echo $is_iframe_checkout ? 0 : 1?>",checkoutUri:"<?php echo WC_Zipmoney_Payment_Gateway_Util::get_checkout_endpoint_url();?>",redirectUri:"<?php echo WC_Zipmoney_Payment_Gateway_Util::get_complete_endpoint_url()?>",onCheckout:function(resolve,reject,args){var errorDiv=$('#zipMoneyErrorDiv');errorDiv.hide();$.ajax({type:'POST',url:'<?php echo WC_Zipmoney_Payment_Gateway_Util::get_wc_checkout_url()?>',data:$('form.checkout').serialize(),dataType:"json",success:function(result){console.log("successfully triggered");if(result.checkout_id){checkoutId=result.checkout_id}
2if(result.redirect_uri){console.log("resolved");resolve({data:{redirect_uri:result.redirect_uri}})}else{console.log("reject");errorDiv.html(result.messages);errorDiv.show();$("html, body").animate({scrollTop:($('form.checkout').offset().top-200)},1000);reject()}},error:function(jqXHR,textStatus,errorThrown){console.log('error triggered');reject()}})},onComplete:function(response){console.log("onComplete is called.");console.log(response);if(response.state==="approved"||response.state==="referred"){$("div.zip-overlay").css("display","block");location.href="<?php echo WC_Zipmoney_Payment_Gateway_Util::get_complete_endpoint_url();?>?result="+response.state+"&checkoutId="+response.checkoutId}else if((response.state==="cancelled"||response.state==="declined")&&checkoutId){$.post("<?php echo WC_Zipmoney_Payment_Gateway_Util::get_clear_options_url()?>",{checkout_id:checkoutId})}},onError:function(response){console.log("onError is called.");console.log(response);alert(response.message)}});e.preventDefault()}});$(".wc-block-components-checkout-place-order-button").on('click',function(e){var payment_method=$('input[name="radio-control-wc-payment-method-options"]:checked').val();if(payment_method=='zipmoney'){$('div.zip-overlay').css('display','block')}})})})(window.jQuery||window.$)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.