[ Root System Explorer ]
Location:
Root
/
var
/
www
/
html
/
acma.in
/
eazypay
+ Folder
+ File
Upload
Editing: initiate-payment.php
<?php include 'EazyPay.php'; include('../ccform/Crypto.php'); include( __DIR__."/../config.php" ); use Cocur\Slugify\Slugify; use Illuminate\Filesystem\Filesystem; global $antiXss; $_GET = $antiXss->xss_clean($_GET); $_POST = $antiXss->xss_clean($_POST); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); if(isset($_POST['g-recaptcha-response'])) $captcha=$_POST['g-recaptcha-response']; $formname = $_POST['formname'] ?? ''; $return_url = 'https://www.acma.in/annual-session.php?error=Please select a form.'; if($formname == ''){ echo '<script>location.href="'.$return_url.'"?error=Please select a form.";</script>'; exit; } if($formname == 'sponsors_session_form'){ $return_url = 'https://www.acma.in/annual-session.php'; } if($formname == 'deligates_session_form'){ $return_url = 'https://www.acma.in/delegates-form.php'; } if(!$captcha){ echo '<script>location.href="'.$return_url.'?error=Please check the the captcha form.";</script>'; exit; }else{ $response = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LedyJ0UAAAAAAl1ogpyCYU8Zj1RltS0qGlV5zNk&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); if($response['success'] == false) { echo '<script>location.href="'.$return_url.'?error=You are spammer.";</script>'; exit; }else{ if(isset($_POST) && isset($_POST['captcha_input'])){ // check captcha $reference_no = date('Ymd').str_pad(rand(1111,9999) + 1, 6, '0', STR_PAD_LEFT); $sub_merchant_id = '11'; $amount = $_POST['amount']; $invoice_no = 'INV'.date('Ym').str_pad(rand(1111,9999) + 1, 6, '0', STR_PAD_LEFT); $company_name = $_POST['company_name']; $company_code = 'CODE_'. $company_name; $activity_name = $_POST['formname']; $contact_number = $_POST['billing_tel']; $email = $_POST['billing_email']; $mandatory_fields = $reference_no.'|'.$sub_merchant_id.'|'.$amount.'|'.$invoice_no.'|'.$company_name.'|'.$company_code.'|'.$activity_name.'|'.$contact_number.'|'.$email; $optional_fields = '0'; $eazypay = new \EazyPay\EazyPay(); $paymentUrl = $eazypay->getPaymentUrl($amount, $reference_no, $optional_fields, $mandatory_fields); $pliantPaymentUrl = $eazypay->generatePlainPaymentUrl($amount, $reference_no, $optional_fields, $mandatory_fields); // header('Location: '.$paymentUrl); if($paymentUrl){ $billing_name = $_POST['billing_name']; $designation = $_POST['designation']; $billing_email = $_POST['billing_email']; $billing_tel = $_POST['billing_tel']; $billing_date = date('Y-m-d H:i:s'); $company_name = $_POST['company_name']; $event_name = $_POST['event_name']; $gstno = $_POST['gstno']; $billing_address = $_POST['billing_address']; $amount = $_POST['amount']; $tds_amount = $_POST['tds_amount'] ?? 0; $currency = $_POST['currency']; $payment_type = $_POST['payment_type']; $payment_option = $_POST['payment_option'] ?? ''; $agree = $_POST['agree'] ?? ''; $order_id = $reference_no; $status = $_POST['status'] ?? ''; $tid = $reference_no; $taxinovice = $_POST['taxinovice'] ?? ''; $formname = $_POST['formname']; $number_of_members = $_POST['number_of_members'] ?? 0; if($number_of_members != 0){ $number_of_members = $number_of_members + 1; } $package_type = $_POST['package_type'] ?? ''; if($package_type == ''){ $sponsorship_type = $_POST['sponsorship_type'] ?? ''; if($sponsorship_type == '2500000'){ $package_type = 'Theater Atmos Partner'; }else if($sponsorship_type == '1500000'){ $package_type = 'Titanium'; }else if($sponsorship_type == '1000000'){ $package_type = 'Platinum'; }else if($sponsorship_type == '750000'){ $package_type = 'Gold'; }else if($sponsorship_type == '500000'){ $package_type = 'Silver'; }else if($sponsorship_type == '600000'){ $package_type = 'Digital Backlit Tower'; }else if($sponsorship_type == '300000'){ $package_type = 'Green Corridor'; }else if($sponsorship_type == '1'){ $package_type = 'Member'; } }else{ if($package_type == '0'){ $package_type = 'Member'; }else{ $package_type = 'Non-Member'; } } if(isset($_SESSION)){ $_SESSION['name'] = $billing_name; $_SESSION['billing_date'] = $billing_date; $_SESSION['amount'] = $amount; }else{ session_start(); $_SESSION['name'] = $billing_name; $_SESSION['billing_date'] = $billing_date; $_SESSION['amount'] = $amount; } // print_r($tid); // die; //end new code $payment = new App\Models\OnlinePaymentTable(); $payment->billing_name = $billing_name; $payment->designation = $designation; $payment->billing_email = $billing_email; $payment->billing_tel = $billing_tel; $payment->company_name = $company_name; $payment->event_name = $event_name; $payment->gstno = $gstno; $payment->billing_address = $billing_address; $payment->amount = $amount; $payment->tds_amount = $tds_amount; $payment->currency = $currency; $payment->payment_type = $payment_type; $payment->payment_option = $payment_option; $payment->agree = $agree; $payment->order_id = $order_id; $payment->status = "0"; $payment->tid = $reference_no; $payment->taxinovice = $taxinovice; $payment->formname = $formname; $payment->billing_date = $billing_date; $payment->number_of_members = $number_of_members; $payment->package_type = $package_type; $payment->save(); header("Location: $paymentUrl"); exit; }else{ echo "Error generating payment URL."; exit; } } } } ?>
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 EazyPay.php
FILE
Ren
[EDIT]
DEL
📄 initiate-delegates-payment.php
FILE
Ren
[EDIT]
DEL
📄 initiate-payment.php
FILE
Ren
[EDIT]
DEL