PageSourceSearch

https://optin.business/wp-content/cache/min/1/wp-content/plugins/b…/assets/frontend/js/init.js?ver=1790753808

js optin.business collected 2026-10-06 16:19:50 UTC 2,857 bytes, 8 lines download raw bytes

1var bookneticStripePaymentCompletedFn;(function($){"use strict";$(document).ready(function(){let paymentWindow;let paymentWindowController;let paymentLinkExpirationController;let paymentData;const stripeLoading=function(status){if(status){let loadingEl=document.createElement('div');loadingEl.className='booknetic_stripe_loading';loadingEl.style.position='fixed';loadingEl.style.top=0;loadingEl.style.left=0;loadingEl.style.width='100%';loadingEl.style.height='100%';loadingEl.style.background='rgba(0,0,0,0.7)';loadingEl.style.color='#FFF';loadingEl.style.display='flex';loadingEl.style.alignItems='center';loadingEl.style.justifyContent='center';loadingEl.style.zIndex=9999;loadingEl.innerHTML=BookneticData.localization['Please process the payment...']||'Please process the payment...';$('body').append($(loadingEl))}else{$('.booknetic_stripe_loading').remove()}};const waitPaymentFinish=function(){if(paymentWindow.closed){paymentCompleted(!1);return}
2paymentWindowController=setTimeout(waitPaymentFinish,1000)};const paymentCompleted=function(status){stripeLoading(!1);if(!paymentWindow.closed)
3paymentWindow.close();clearTimeout(paymentWindowController);bookneticHooks.doAction('payment_completed',status,paymentData)};bookneticHooks.addAction('before_processing_payment',function(payment_method,data){if(payment_method!=='stripe')
4return;paymentData=data;paymentLinkExpirationController&&clearTimeout(paymentLinkExpirationController);paymentWindow=window.open('','booknetic_payment_window','width=1000,height=700');waitPaymentFinish();bookneticStripePaymentCompletedFn=paymentCompleted});bookneticHooks.addAction('after_processing_payment',function(payment_method,process_status,data){if(payment_method!=='stripe')
5return;if(!process_status){paymentWindow.close();return}
6if(!paymentWindow.closed){stripeLoading(!0);paymentWindow.location.href=data.url;if(typeof data.payment_link_expiration_time!==undefined){paymentLinkExpirationController=setTimeout(()=>{paymentWindow.close()},data.payment_link_expiration_time*1000)}
7return}});bookneticHooks.addAction('ajax_before_confirm',function(params,booknetic){if(params.get('payment_method')=='stripe'){bookneticPaymentStatus=booknetic.paymentFinished;booknetic.paymentWindow=window.open('','booknetic_payment_window','width=1000,height=700');booknetic.waitPaymentFinish()}});bookneticHooks.addAction('ajax_after_confirm_success',function(booknetic,data,result){if(data.get('payment_method')=='stripe'){if(result.status=='error'){booknetic.toast(result.error_msg,'unsuccess');booknetic.paymentWindow.close();return}
8if(!booknetic.paymentWindow.closed){booknetic.loading(1);booknetic.paymentWindow.location.href=result.url;return}}});bookneticHooks.addAction('ajax_after_confirm_error',function(booknetic,data,result){if(data.get('payment_method')=='stripe'){booknetic.paymentWindow.close()}})})})(jQuery)

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.