ok

Mini Shell

Direktori : /home2/selectio/www/y1jobportal.in/
Upload File :
Current File : //home2/selectio/www/y1jobportal.in/success-original .php

<?php
ob_start(); 
session_start();
include "admin/api/config/config.php";
include_once('admin/api/config/custom-functions.php');
$date = date("Y-m-d");
$updated_at = date("Y-m-d H:i:s");  
$fn = new custom_functions;

 
$ids=$_POST['transactionId'];

if($_POST['code']=='PAYMENT_SUCCESS'){
        // $str = " b719a190b0bb_3";
        $r=(explode("_",$ids));
        
        $ids =  $r[1];
        /*Push Notification Start    */
            $statementss = $pdo->prepare("SELECT * FROM `customer` WHERE id=$ids");
            $statementss->execute();
            $cus_res = $statementss->fetchAll(PDO::FETCH_ASSOC);
            if($cus_res){
                $id=0;$type='payment_success';
                $title="Hi ".$cus_res[0]['cust_firstname'].", Your Payment has been Successfull";
                $message="Get the full access for your dasboard ";
                $fn->send_notification($cus_res[0]['fcm_id'], $title,$message,$type,$id);
            }
        /*Push Notification End   */ 
        $results = $_POST['code'];
        $statement = $pdo->prepare("UPDATE `customer` SET process=4 where id=$ids");
        $result=$statement->execute();
}else{
  ?>    <center>Payment Failed</center>



<?php } ?>





<center> <?= $results ?> </center> 

 
 <div style="width: 100%; height: 50%; display: flex; justify-content: center; align-items: center;"></div>

 
<?php
// foreach ($_POST as $key => $value) {
    
    
//     // echo "$key: $value<br>";
    
    
    
    
// }










?>

Zerion Mini Shell 1.0