PageSourceSearch

https://www.gltfoundation.com/wp-content/plugins/easy-paypal-donation//assets/js/wpedon.js?ver=1.4.2

js gltfoundation.com collected 2026-10-01 15:48:59 UTC 2,516 bytes, 63 lines download raw bytes

1jQuery(document).ready(function($){
2    $(document).on('click', '.wpedon-stripe-button', function(e){
3        e.preventDefault();
4
5        const $button = $(this),
6            $form = $button.parents('form'),
7            $message = $form.find('.wpedon-stripe-message');
8
9        if ($button.hasClass('processing')) return  false;
10        $button.addClass('processing');
11
12        $message.html('');
13
14        $.post(wpedon.ajaxUrl, {
15            action: 'wpedon_stripe_checkout_session',
16            nonce: wpedon.nonce,
17            data: $form.serialize(),
18            location: window.location.href
19        }, function(response) {
20            if (response.success) {
21                if ( wpedon.opens == '1' ) {
22                    try {
23                        const stripe = Stripe(response.data.stripeKey, {
24                            stripeAccount: response.data.accountId
25                        });
26                        stripe.redirectToCheckout({
27                            sessionId: response.data.sessionId
28                        });
29                    } catch (error) {
30                        $message.html('<span class="stripe-error">' + error + '</span>');
31                        $button.removeClass('processing');
32                    }
33                } else {
34                    $button.removeClass('processing');
35
36                    const siteUrl = location.protocol + '//' + location.host + location.pathname;
37
38                    let params = new URLSearchParams(location.search);
39                    params.delete('wpedon_stripe_success');
40                    params = params.toString();
41
42                    const url = siteUrl + '?' + new URLSearchParams({
43                        'wpedon-stripe-checkout-redirect': 1,
44                        'sk': response.data.stripeKey,
45                        'ai': response.data.accountId,
46                        'si': response.data.sessionId,
47                        'rf': siteUrl + (params.length ? '?' + params : '')
48                    });
49                    window.open(url, '_blank').focus();
50                }
51            } else {
52                $message.html('<span class="stripe-error">' + response.data.message + '</span>');
53                $button.removeClass('processing');
54            }
55        })
56        .fail(function() {
57            $message.html('<span class="stripe-error">An unexpected error occurred. Please try again.</span>');
58            $button.removeClass('processing');
59        });
60
61        return false;
62    });
63});

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.