PageSourceSearch

https://steelblue-starling-118246.hostingersite.com/wp-content/plu…/assets/js/checkout.js?ver=1.0.2013

js steelblue-starling-118246.hostingersite.com collected 2026-10-03 04:56:47 UTC 2,349 bytes, 79 lines download raw bytes

1var checkout_form = jQuery('form.checkout');
2
3checkout_form.on('checkout_place_order_success',
4    function () {
5
6            window.paymentIsPayTech = jQuery('#payment_method_paytech').prop('checked');
7
8             if(window.paymentIsPayTech && window.paymentPopupMode === PayTech.OPEN_IN_POPUP){
9
10                 setTimeout(function (){
11                     jQuery('.woocommerce-error').hide()
12                 }, 5);
13
14                 setTimeout(function (){
15                     if(window.handlePayTechOpen){
16                         (new PayTech()).withOption({
17                             tokenUrl: window.handlePayTechOpenTokenUrl,
18                             method: 'POST',
19                             prensentationMode: window.paymentPopupMod,
20                         }).send()
21                         jQuery('.woocommerce-error').hide()
22                     }
23                 }, 200);
24                 return  false;
25             }
26             else{
27                 return  true;
28             }
29
30      //  return !window.handlePayTechOpen;
31    }
32);
33
34
35
36jQuery(document).ajaxComplete(function (event, xMLHttpRequest, ajaxOptions){
37    var data  = xMLHttpRequest.responseText;
38
39    if(ajaxOptions.url.includes('?wc-ajax=checkout')){
40        if(String(data).includes('paytech.sn')){
41            try {
42                window.handlePayTechOpen = true;
43                window.handlePayTechOpenTokenUrl = JSON.parse(String(data)).redirect;
44            } catch (e) {
45                alert(e.message)
46            }
47        }
48        else{
49            window.handlePayTechOpen = false;
50        }
51    }
52
53
54});
55
56(function () {
57    var { fetch: originalFetch } = window;
58    window.originalFetch = originalFetch;
59
60    window.fetch = async (...args) => {
61        let [resource, config ] = args;
62
63        const response = await window.originalFetch(resource, config);
64        var cloneResponse = response.clone();
65        var responseText = await cloneResponse.text();
66       // console.log({},{responseText:responseText},{url: resource});
67
68        if(resource.includes('?wc-ajax=checkout')){
69            console.log('trigger')
70            jQuery(document).triggerHandler('ajaxComplete',[{responseText:responseText},{url: resource}]);
71        }
72        else{
73            console.log('no trigger')
74        }
75
76
77        return response;
78    };
79})()

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.