GRAYBYTE WORDPRESS FILE MANAGER1216

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woo-razorpay/public/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/woo-razorpay/public/js//admin-rzp-settings.js
window.onload = function() {
	// for confirmation of toggling 1cc
	var enableRzpCheckout = document.getElementById('woocommerce_razorpay_enable_1cc');
	if (enableRzpCheckout) {
		enableRzpCheckout.onclick = function(e) {
			var current_val = enableRzpCheckout.checked;
			if (current_val) {
				var message = 'Do you want to activate Magic Checkout?'
			} else {
				var message = 'Are you sure you want to deactivate Magic Checkout?'
			}
			if (!confirm(message)) {
				if (current_val) {
					enableRzpCheckout.checked = false;
				} else {
					enableRzpCheckout.checked = true;
				}
			}
		}
	}

	//instrumentation
	var rzpAdminElements = [
		'woocommerce_razorpay_key_id',
		'woocommerce_razorpay_key_secret',
		'woocommerce_razorpay_route_enable'
	];

	if (enableRzpCheckout) {
		rzpAdminElements.push('woocommerce_razorpay_enable_1cc');
	}

	var sensitive_fields = [
		'woocommerce_razorpay_key_id',
		'woocommerce_razorpay_key_secret'
	];

	rzpAdminElements.forEach(registerFocusOutEvent);

	function registerFocusOutEvent(item, index)
	{
		var rzpElement = document.getElementById(item);

		if (rzpElement == null)
		{
			return;
		}
		
		var data = {
			'action' : 'rzpInstrumentation',
			'event' : 'formfield.interacted',
			'properties' : {
				'page_url' : window.location.href,
				'field_type' : rzpElement.type,
				'field_name' : item
			}
		};

		if (!sensitive_fields.includes(item)) {
			data['properties']['field_value'] = rzpElement.value;
		}

		rzpElement.onfocusout = function(e)
		{
			rzpAjaxCall(data);
		}
	}
}

function rzpAjaxCall(data) {
	jQuery.ajax({
		url : ajaxurl, // this will point to admin-ajax.php
		type : 'POST',
		data : data,
		success : function (response) {}
	});
}

function rzpSignupClicked(e) {
	var data = {
		'action' : 'rzpInstrumentation',
		'event' : 'signup.initiated',
		'properties' : {
				'next_page_url' : 'https://easy.razorpay.com/onboarding/?recommended_product=payment_gateway&source=woocommerce'
			}
	};

	rzpAjaxCall(data);
}

function rzpLoginClicked(e) {
	var data = {
		'action' : 'rzpInstrumentation',
		'event' : 'login.initiated',
		'properties' : {
			'next_page_url' : 'https://dashboard.razorpay.com/signin?screen=sign_in&source=woocommerce'
		}
	};

	rzpAjaxCall(data);
}


[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:24
giriqfky / giriqfky
0644
admin-rzp-settings.js
2.201 KB
March 28 2024 15:34:52
giriqfky / giriqfky
0644
bootstrap.min.js
58.671 KB
September 20 2022 12:20:36
giriqfky / giriqfky
0644
woo_route.js
3.241 KB
March 02 2022 10:26:56
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF