<?php include ("../serive/samparka.php");?>
<?php 
if(isset($_GET['amount'])){
	$ramt = htmlspecialchars(mysqli_real_escape_string($conn, $_GET['amount']));
} else{
	$ramt = 0;
}
$dot_pos = strpos($ramt, '.');
if ($dot_pos === false) {
    $ramt = $ramt . '.00';
}else {
    $after_dot = substr($ramt, $dot_pos + 1);
    $after_dot_length = strlen($after_dot);
    if ($after_dot_length > 2) {
        $after_dot = substr($after_dot, 0, 2);
        $ramt = substr($ramt, 0, $dot_pos + 1) . $after_dot;
    } elseif ($after_dot_length < 2) {
        $zeros_to_add = 2 - $after_dot_length;
        $ramt = $ramt . str_repeat('0', $zeros_to_add);
    }
}
$date = date("Ymd");
$time = time();
$serial = 'P' . $date . $time . rand(1000,9999);

$tyid = htmlspecialchars(mysqli_real_escape_string($conn, $_GET['tyid']));
$uid = htmlspecialchars(mysqli_real_escape_string($conn, $_GET['uid']));
$sign = htmlspecialchars(mysqli_real_escape_string($conn, $_GET['sign']));
$urlInfo = htmlspecialchars(mysqli_real_escape_string($conn, $_GET['urlInfo']));
?>
<?php 
	$s_upi = "SELECT maulya FROM deyya WHERE sthiti='1'";
	$r_upi = mysqli_query($conn, $s_upi);
	$f_upi = mysqli_fetch_array($r_upi);
	$upi_id = $f_upi['maulya'];
	
	$selectupi_two=mysqli_query($conn,"select * from `images` where `status`=1");
	$selectupiresult_two=mysqli_fetch_array($selectupi_two);
?>
<?php
	$res = [
		'code' => 405,
		'message' => 'Illegal access!',
	];
	if (isset($_GET['tyid']) && isset($_GET['amount']) && isset($_GET['uid']) && isset($_GET['sign']) && isset($_GET['urlInfo'])) {
		$userId = $uid;
		$userPhoto = '1';
		
		$numquery = "SELECT mobile, codechorkamukala
		  FROM shonu_subjects
		  WHERE id = ".$userId;
		$numresult = $conn->query($numquery);
		$numarr = mysqli_fetch_array($numresult);
		
		$userName = '91'.$numarr['mobile'];
		$nickName = $numarr['codechorkamukala'];
		
		$creaquery = "SELECT createdate
		  FROM shonu_subjects
		  WHERE id = ".$userId;
		$crearesult = $conn->query($creaquery);
		$creaarr = mysqli_fetch_array($crearesult);
		
		$knbdstr = '{"userId":'.$userId.',"userPhoto":"'.$userPhoto.'","userName":'.$userName.',"nickName":"'.$nickName.'","createdate":"'.$creaarr['createdate'].'"}';
		$shonusign = strtoupper(hash('sha256', $knbdstr));
		
		$urlarr = explode (",", $urlInfo);
		$theirurl = $urlarr[0];
		$myurl = 'https://t.tashanwin7.online';
		
		if($shonusign == $sign && $theirurl == $myurl){
?><!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./aksofts_files/sweetalert2@11"></script><style>:root{--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:var(--swal2-border-radius);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:var(--swal2-input-background);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:var(--swal2-background);box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}</style>
    <script src="./aksofts_files/jquery-3.6.0.min.js.download"></script>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" http-equiv="X-UA-Compatible">
    <meta name="theme-color" content="#000000">
    <title>CECO</title>
    <link href="./aksofts_files/2.9eecab76.chunk.css" rel="stylesheet">
    <link href="./aksofts_files/main.e18ff35e.chunk.css" rel="stylesheet">
</head>

<body>
    <style>
        .upi_content img {
            height: 29px !important;
        }
    </style>
    <title>AB Goup Payments</title>
<style>
    * {
    margin: 0;
    padding: 0;
    font-family: Microsoft YaHei;
    box-sizing: border-box
}
body {
    color: #333;
    background: #fff;
    padding-top: 1.2rem;
    font-size: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
}
button, input, select {
    outline-style: none;
    border: 0;
}
.main {
    padding: 7px;
    background: #f9f9f9;
    position: fixed;
    padding-top: 1.2rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(-45deg,#0d2d87,#6d4166 50%,#ed221e);
    color: #fff;
    font-size: .373333rem;
    z-index: 999;
}
.header .left_btn {
    position: absolute;
    left: .4rem;
    top: -0.01rem;
    line-height: 1.2rem;
}
.header .left_btn img {
    vertical-align: middle;
    width: .48rem;
}

.header .Maintitle {
    line-height: 1.2rem;
    height: 1.2rem;
    text-align: center;
}
.money_content {
    margin-top:0.25rem;
    padding:.24rem .3rem .24rem .3rem
}
.money_content .help{
    position: absolute;
    right: .45rem;
}
.money_content .help span{
    position: relative;
    margin-top:0.1rem;
    top: -0.2rem;
    right: -2.65rem;
    font-size:12px;
    color: #272727;
}
.money_content .logo{
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    opacity: 0.4;
}
.money_content .play{
    position: relative;
    left: 1.43rem;
    bottom: 0.45rem;
    z-index: 999;
}
.money_content .money_title{
    margin-top:0.1rem;
    font-size:12px;
    font-weight:bold;
    margin-right:8px;
    color:#232323
}
.money_content .money{
   padding-top:10px;
   font-weight:bold;
   font-size:18px
}
.money_content .money font{
   color:#446293;
   font-size:32px
}

.content {
    box-shadow: 0.01rem 0.06rem 0.18rem 0 rgb(0 0 0 / 15%);
    background-color: #fff;
    padding:0.24rem .45rem .45rem;
    margin-bottom: 2.8rem;
}
.content .title{
    margin: 0.3rem 0 0.6rem 0;
    color:#446293;
    font-size: 14px;
}
.upi_content {
    box-shadow: 0 0.04rem 0.133333rem 0 rgb(0 0 0 / 15%);
    background-color: #fff;
    border-radius: .08rem;
    margin-top:0.25rem;
    margin-bottom: 0.4rem;
    padding: 0.4rem;
}
.upi_content.select{
    box-shadow:0 0.01rem 0.1rem 0 rgb(127 140 160);
}
.upi_content img{
    width:auto;
    height:20px;
    margin-top: 0.08rem;
}
.tip{
    margin-top: 0.8rem;
    color: #446293;
    border-top: solid 2px #eee;
    padding: 15px 0;
}
.tip_content{
    font-size:14px;
    line-height: 24px;
    word-break:break-all;
}
.error{
    font-size: 22px;
    text-align: center;
    margin-top: inherit;
    color: #446293;
    padding: 45px 0;
}

.foot{
    position:fixed;
    padding:10px 12px 18px 12px;
    background:#fff;
    bottom:0px;
    width:100%;
    box-shadow: 0px -2px 4px #cccccc;
}
.foot button{
    width: 100%;
    font-size: .4rem;
    line-height: 1.2rem;
    color: #fff;
    text-align: center;
    border-radius: 0.1rem;
    margin-top: 0;
    /*background: #446293;*/
    /*background: linear-gradient(-45deg,#0d2d87,#6d4166 50%,#ed221e);*/
    background: linear-gradient(-45deg,#446293,#4c6994 50%,#446293);
    box-shadow: 0 0.04rem 0.1rem 0 rgb(68 98 147);
}
.foot.back button{
    background: #929292;
    box-shadow: 0 0.04rem 0.1rem 0 rgb(146 146 146);
}
.time{
    text-align: center;
    padding-bottom: 9px;
    font-size: 14px;
    color: #b82f3c;
    font-weight: bold;
}
.video{
    display:none;
    background: #0000009e;
    z-index: 999;
    position: absolute;
    top: 0;
    bottom: 0;
    width:100%;
    text-align:center
}
.player{
    height: 80%;
    margin-top:10%
}
.closevideo{
    margin-top:5%; 
    width:1rem
}

.radio {
  margin: 0.15rem;
}
.radio input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.radio input[type="radio"] + .radio-label:before {
  content: '';
  background: #f4f4f4;
  border-radius: 50%;
  border: 1px solid #b4b4b4;
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  position: relative;
  top: -0.2em;
  margin-right: 1em;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  -webkit-transition: all 250ms ease;
  transition: all 250ms ease;
}
.radio input[type="radio"]:checked + .radio-label:before {
  background-color: #446293;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio input[type="radio"]:focus + .radio-label:before {
  outline: none;
  border-color: #446293;
}
.radio input[type="radio"]:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
.radio input[type="radio"] + .radio-label:empty:before {
  margin-right: 0;
}

.qr_content {
    box-shadow: 0 0.04rem 0.133333rem 0 rgb(0 0 0 / 15%);
    background-color: #fff;
    border-radius: .08rem;
    height: 3.5rem;
    margin-top:0.25rem;
    margin-bottom: 0.4rem;
    padding: 0.4rem;
}

.bottom {
    display: flex;
    justify-content: space-between;
    height: 2.27778rem;
}

.lelf {
    font-size: 24px;
    font-family: PingFangSC-Semibold,PingFang SC;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top {
    font-family: PingFangSC-Semibold,PingFang SC;
    -webkit-font-smoothing: antialiased;
    margin-bottom: .25rem;
    font-size: .44444rem;
    font-weight: 600;
    color: #07448d;
    line-height: .61111rem;
}

.right {
    width: 2.27778rem;
    height: 2.27778rem;
    margin-right: .5rem;
}

.option {
    font-family: PingFangSC-Semibold,PingFang SC;
    -webkit-font-smoothing: antialiased;
    margin-bottom: .25rem;
    font-size: .44444rem;
    font-weight: 600;
    color: indianred;
    line-height: .61111rem;
}
</style>



   

<style>
        /* Notification Container */
        .message-container {
            position: fixed;
            top: 40%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            display: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        /* Message Notice Wrapper */
        .message-notice-wrapper {
            animation: slide-up 0.5s forwards;
        }

        /* Slide Animation */
        @keyframes slide-up {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Success Message */
        .message-success {
            display: flex;
            align-items: center;
            background-color: #f6ffed;
            border: 1px solid #b7eb8f;
            border-radius: 8px;
            padding: 10px 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            font-weight: 500;
        }

        /* Success Icon */
        .message-success-icon {
            margin-right: 8px;
            font-size: 16px;
        }
        
        .msg-content {
            display: inline-flex;
            align-items: center;
            background-color: #f6ffed;
            border: 1px solid #b7eb8f;
            border-radius: 8px;
            padding: 10px 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            font-weight: 500;
            width: 160px;
            margin-left: 110px;
            margin-top: 230px;
        }
        .ceco6Pay-smart-pay .mheader{
            padding: 4px 0;
        }
    </style>
    <div id="root" style="height:100%">
        <div class="ceco6Pay-smart-pay">
            <div class="mheader">
                <div class="header_wrap"><img src="./aksofts_files/logo.png" style="width: 120px;height: 120px;"></div>
            </div>
            <div class="wrap">
                <div class="order_right_wrap">
                    <div class="transfer_infor">
                        <div class="title">Transfer Amount:</div>
                        <div class="amount" id="money">₹ <?php echo $ramt;?></div>
                    </div>
                    <div class="order_timer"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAbpJREFUOE+VlY1RwkAQRk0FagWGCsQKTAdKBWIFQgVCBWIFQgVCBdKB0AF0gBXE72V2cXOTg/FmbkI2u2+/vZ+luMiMuq6H+nSv2beJ58bmsiiKVVdokRoFepTtTbPMJTP7Ts+xwMvo1wIKNtPHl+Dwo98EEMwgCQkvg89M0LG/H4EJDNBIjvMulbYcJHfwu3xH+DZAK/PTgreokEOjSt9Yw29UytbzBLKjFvW3ZhtQvgMJvtFEWd9hBqz0/Gqya0TFBmWjUNokLEz+hzk+p2XqexZoCYd6evwA4FyGJ9QJdhUVnFMYyj+YygVAJLMOKwHZwdY4p9CSspYPmhuAtRGmAk5OAfWtF9c3KCTulff/AneKYZ3XMbE0tYAnS7aSjgEGmgg6DQq95G3clIOcrtOSQ1Cl33NNjhfjTv6I4ay2NmUoW/bYJKVxCoCSnDhgMX6QHmwykXmXU5okKPXOLSLRXnFl19WjDK7RSajdEq4rV5Pxd/VMeuw0KKU5LLqUCkYj4Jj4RWg3Bw/qaF+A15rN4mtUpijeqCMMh1yDRa3vZpdIbHurIt9gY6TtnivyFkVrQy1/AS2Qx/4C3L3mej1TDZgAAAAASUVORK5CYII=">
                        <div class="timer">04:36</div>
                    </div>
                </div>
                <div class="text_shadow" style="margin-top: 15px;">
                    <div class="text_step">Step 1</div>
                    <div>Please scan the QR code with your favorite UPI app and copy the UTR code</div>
                </div>
                <div class="qr_dev" style="margin-top: 15px;">
                <div id="div_qrcode"></div>
                <div style="text-align:center;">
                    <a id="qr-code-download-link" href="https://api.qrserver.com/v1/create-qr-code/?chs=300x300&cht=qr&data=<?php $upi_link = "upi://pay?pa={$upi_id}&am={$ramt}&pn=HOST BANK&tn={$serial}&tr=qU3s9ugyYe{$serial}";

// URL encode the UPI link
$encoded_upi_link = urlencode($upi_link); 
echo $encoded_upi_link; ?>" download="">
                        <img src="https://api.qrserver.com/v1/create-qr-code/?chs=300x300&cht=qr&data=<?php $upi_link = "upi://pay?pa={$upi_id}&am={$ramt}&pn=HOST BANK&tn={$serial}&tr=qU3s9ugyYe{$serial}";

// URL encode the UPI link
$encoded_upi_link = urlencode($upi_link); 
echo $encoded_upi_link; ?>" style="width: 200px; height: 200px !important;">
                    </a>
                </div>
            </div>
            <div class="qr_alert_con">
                <div id="download-button" class="qr_button">Download / Open</div>
            </div>
            <script>
                document.getElementById('download-button').addEventListener('click', function() {
                    const qrCodeLink = document.getElementById('qr-code-download-link');
                    if (qrCodeLink) {
                        qrCodeLink.click(); // Simulate a click on the download link
                    } else {
                        alert('QR Code URL is not available.');
                    }
                });
            </script>
                <div class="right_qr_wrap">
                    <div class="upi_desc"> Scan Qr Code To Pay And Get Deposit Do Screenshot of qr Code and Pay 
                       .</div>
                    <div class="new-method-box">
                        <div class="ant-list ant-list-split ant-list-grid css-98ntnt">
                            <div class="ant-spin-nested-loading css-98ntnt">
                                <div class="ant-spin-container">
                                    <div class="ant-row css-98ntnt" style="margin-left: -8px; margin-right: -8px;">
                                        <div style="width: 33.3333%; max-width: 33.3333%;">
                                            <div class="ant-col css-98ntnt" style="padding-left: 8px; padding-right: 8px; flex: 1 1 auto;">
                                                <div class="ant-list-item">
                                                    <div class="upi_option">
                                                    <a onclick="location.href=&#39;paytp://pay?pa=<?php echo $upi_id; ?>&amp;am=<?php echo $ramt; ?>&amp;pn=HOST BANK&amp;tn=<?php echo $serial; ?>&amp;tr=<?php echo $serial; ?>&#39;" target="_self">
                                                     <img src="data:image/png;base64, " style="width: 60px;">
                                                        <div style="font-size: 10px; font-family: m-600;"> Paytm </div>
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div style="width: 33.3333%; max-width: 33.3333%;">
                                            <div class="ant-col css-98ntnt" style="padding-left: 8px; padding-right: 8px; flex: 1 1 auto;">
                                                <div class="ant-list-item">
                                                    <div class="upi_option">
                                                     <a onclick="location.href=&#39;phonepe://upi&#39;" target="_self"><img src="data:image/png;base64, " style="width: 60px;">
                                                        <div style="font-size: 10px; font-family: m-600;"> PhonePe
                                                        </div>
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div style="width: 33.3333%; max-width: 33.3333%;">
                                            <div class="ant-col css-98ntnt" style="padding-left: 8px; padding-right: 8px; flex: 1 1 auto;">
                                                <div class="ant-list-item">
                                                    <div class="upi_option">
                                                     <a onclick="location.href=&#39;pammp://pay?pa=<?php echo $upi_id; ?>&amp;am=<?php echo $ramt; ?>&amp;pn=HOST BANK&amp;tn=<?php echo $serial; ?>&amp;tr=<?php echo $serial; ?>&#39;" target="_self"><img src="data:image/png;base64, " style="width: 60px;">
                                                        <div style="font-size: 10px; font-family: m-600;"> UPI </div>
                                                         </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="text_shadow">
                    <div class="text_step">Step 2</div>
                    <div>Please fill in the Ref No./UTR No after the transaction is completed</div>
                </div>
                <div class="textbox_wrap" method="post">
    <div class="title">UTR</div>
    <input maxlength="12" id="upi_ref_no" required="" placeholder="UTR / UPI Ref No / UPI Transaction ID" class="ant-input ant-input-lg css-98ntnt ant-input-outlined" type="text" value="">
</div>
<button id="submit_button" type="button" class="ant-btn css-98ntnt ant-btn-primary ant-btn-block">
    <span>Submit</span>
</button>

<!-- Popup Overlay -->
<div class="popup-overlay" id="popup-overlay"></div>

<!-- Popup -->
<div class="popup msg-content" id="popup">
    <span class="message-success-icon">✔</span>
    <p>Successfully Submitted</p>
    <button class="close-btn" id="close-btn">Close</button>
</div>

<style>
    /* General Popup Styles */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .popup {
        position: fixed;
        top: 21%;
        left: 21%;
        transform: translate(-50%, -50%);
        background-color: #f6ffed;
        border: 1px solid #b7eb8f;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: none;
        padding: 20px;
        text-align: center;
        z-index: 1000;
    }

    .message-success-icon {
        font-size: 24px;
        color: #52c41a;
        margin-right: 8px;
        display: inline-block;
    }

    .popup p {
        margin: 10px 0;
        font-weight: 500;
    }

    .popup .close-btn {
        background-color: #52c41a;
        color: #fff;
        border: none;
        border-radius: 4px;
        padding: 8px 16px;
        cursor: pointer;
    }

    .popup .close-btn:hover {
        background-color: #3e8e41;
    }

    /* Display Popup */
    .popup.show {
        display: block;
    }

    .popup-overlay.show {
        display: block;
    }
</style>

<script>
    // Select elements
    const submitButton = document.getElementById('submit_button');
    const popup = document.getElementById('popup');
    const popupOverlay = document.getElementById('popup-overlay');
    const closeButton = document.getElementById('close-btn');

    // Event listener for Submit button
    submitButton.addEventListener('click', () => {
        const utrInput = document.getElementById('upi_ref_no').value.trim();
        if (utrInput === "") {
            alert("Please enter UTR / UPI Ref No / UPI Transaction ID");
        } else {
            popup.classList.add('show');
            popupOverlay.classList.add('show');
            
            	$.ajax({
					type: "Post",
					data:"amt=" + '<?php echo $ramt; ?>'+ "& refnum=" + utrInput+ "& srl=" + '<?php echo $serial; ?>'+ "& source=" + "akpay"+ "& upi=" + '<?php echo $upi_id; ?>'+ "& userId=" +  '<?php echo $userId; ?>'+ "& token=" + '<?php echo $sign; ?>',
					url: "adddeposit.php",
					success: function(html)   
						{
							var arr = html.split('~');
							
							if (arr[0]== 1) {
								
							 window.location.href = 'depositconfirm.php?amt=' + '<?php echo $ramt; ?>' + 
                                        '&refnum=' + utrInput + 
                                        '&srl=' + '<?php echo $serial; ?>' + 
                                        '&userId=' + '<?php echo $userId; ?>' + 
                                        '&token=' + '<?php echo $sign; ?>';
							}	else if(arr[0]==0)
							{ 
								alert("Error");
							}
							else if(arr[0]==2)
							{ 
								alert("Duplicate UTR");
								 window.location.href = 'depositconfirm.php?amt=' + '<?php echo $ramt; ?>' + 
                                        '&refnum=' + utrInput + 
                                        '&srl=' + '<?php echo $serial; ?>' + 
                                        '&userId=' + '<?php echo $userId; ?>' + 
                                        '&token=' + '<?php echo $sign; ?>';
							}
							else if(arr[0]==3)
							{ 
								alert("Please Wait For 1 Minute");
							}
							else if(arr[0]==4)
							{ 
								alert("Your recharge option is suspended" + "\n" + "Contact Customer Support");
							}
						},
						  error: function (e) {}
					});	
           

        }
    });

    // Event listener for Close button
    closeButton.addEventListener('click', () => {
        popup.classList.remove('show');
        popupOverlay.classList.remove('show');
    });

    // Close popup when clicking on the overlay
    popupOverlay.addEventListener('click', () => {
        popup.classList.remove('show');
        popupOverlay.classList.remove('show');
    });
</script>

                <div class="deposit_alert_con" style="margin-top: 25px;">
                    <div class="title">Instructions for Deposits:</div>
                    <div class="li">1. Please save the QR code or copy the UPI ID for payment purposes. The account is only valid for a
                        single deposit; please do not make any subsequent deposits to avoid potential loss of funds.</div>
                    <div class="li">2. Please ensure that the deposited amount matches the originally applied amount, as any discrepancy
                        may result in a failed transaction or loss of funds.</div>
                    <div class="li">3. You may pay through any app for the given UPI ID.</div>
                    <div class="li">4. Complete the transaction in 5 mins or the money may be LOST.</div>
                    <div class="li">5. If, within 24 hours, 5 deposit attempts fail to complete a successful payment, your ID will be
                        temporarily suspended for a 24-hour period.</div>
                    <div class="li">6. Kindly note that we cannot be held responsible for any losses incurred if you did not adhere to
                        the aforementioned guidelines.</div>
                </div>
                <div class="xx-footer" style="padding: 6px 0px;">
                    <div class="explain-box-title-1">
                        <span style="color: green; font-size: 20px; font-weight: 800;">
                            <span role="img" aria-label="safety-certificate" class="anticon anticon-safety-certificate">
                                <svg viewBox="64 64 896 896" focusable="false" data-icon="safety-certificate" width="1em" height="1em" fill="currentColor" aria-hidden="true">
                                    <path d="M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z">
                                    </path>
                                </svg>
                            </span>
                        </span>
                        <span>100% Secure Payments Powered by AB Group Pay</span>
                    </div>
                </div>
                <script>
                    // Set the timer duration (5 minutes)
                    let countdown = 5 * 60;
            
                    // Select the timer element
                    const timerElement = document.querySelector('.timer');
            
                    // Update the timer every second
                    const interval = setInterval(() => {
                        const minutes = Math.floor(countdown / 60);
                        const seconds = countdown % 60;
            
                        // Format the time
                        timerElement.textContent = `${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
            
                        // Decrement the countdown
                        countdown--;
            
                        // Stop the timer at 0
                        if (countdown < 0) {
                            clearInterval(interval);
                            timerElement.textContent = "Time's up!";
                        }
                    }, 1000);
            </script>
    <div class="qr-wrapper" style="display:none">
        <div class="qr-container">
            <div class="qr-title">HOST BANK</div>
            <div class="qr-code">
                <img src="https://api.qrserver.com/v1/create-qr-code/?chs=300x300&cht=qr&data=<?php $upi_link = "upi://pay?pa={$upi_id}&am={$ramt}&pn=HOST BANK&tn={$serial}&tr=qU3s9ugyYe{$serial}";

// URL encode the UPI link
$encoded_upi_link = urlencode($upi_link); 
echo $encoded_upi_link; ?>" id="qrImage" alt="QR Code" style="max-width: 100%;">
            </div>
            <div class="amount">Scan to pay ₹ <?php echo $ramt; ?></div>
            <button class="pay-button" onclick="payViaUPI()">Pay via UPI App</button>
             <div class="validity">Valid until: <span id="timeout">4:38</span></div>
        </div>
    </div>
<script charset="utf-8" src="./aksofts_files/jquery-1.12.4.min.js.download"></script>
<script charset="utf-8" src="./aksofts_files/clipboard.min.js.download"></script>
<script charset="utf-8" src="./aksofts_files/upi.js.download"></script>

    <script>

        function payViaUPI() {
            // This function will be called when user clicks the button
            window.location.href = "payp://pay?pa=<?php echo $upi_id;?>&am=<?php echo $ramt; ?>&pn=HOST BANK&tn=<?php echo $serial; ?>&tr=<?php echo $serial; ?>";
        }


function upiCountdown(elm, minute, second, url) {
    document.getElementById(elm).innerHTML = minute + ":" + second;
    startTimer();

    function startTimer() {
        var presentTime = document.getElementById(elm).innerHTML;
        var timeArray = presentTime.split(/[:]+/);
        var m = timeArray[0];
        var s = checkSecond((timeArray[1] - 1));
        if(s == 59){m = m - 1}
        if(m < 0){
            Swal.fire({
              title: 'Oops',
              text: 'Transaction Timeout!',
              icon: 'error'
            });
            window.location.href = "./";
        }
        document.getElementById(elm).innerHTML = m + ":" + s;
        setTimeout(startTimer, 1000);
    }

    function checkSecond(sec) {
        if (sec < 10 && sec >= 0) { sec = "0" + sec };
        if (sec < 0) { sec = "59" };
        return sec;
    }
}

upiCountdown("timeout", 5, 0, location.href);


setInterval(check, 5000);
</script>

</div></div></div></div></body></html>
<?php
		}
		else{
			$res['code'] = 10000;
			$res['success'] = 'false';
			$res['message'] = 'Sorry, The system is busy, please try again later!';
			
			header('Content-Type: text/html; charset=utf-8');
			http_response_code(200);
			echo json_encode($res);	
		}
	}
	else{
		header('Content-Type: application/json; charset=utf-8');
		http_response_code(200);
		echo json_encode($res);	
	}
?>


<script>
function copyUPI() {
  const upi = document.getElementById("upiID");
  navigator.clipboard.writeText(upi.value).then(() => {
    alert("Copied: " + upi.value);
  });