ACIL FM
Dark
Refresh
Current DIR:
/home/fastexsh/public_html/exchange/payments
/
home
fastexsh
public_html
exchange
payments
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
request.php
1.9 MB
chmod
View
DL
Edit
Rename
Delete
verify.php
5.97 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/fastexsh/public_html/exchange/payments/request.php
<?php function setPayment($pin, $amount, $callback, $card) { $data = [ "pin" => $pin, "amount" => $amount, "callback" => $callback, "card_number" => $card ]; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://panel.aqayepardakht.ir/api/v2/create', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 10, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => json_encode($data), CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', 'Content-Length: ' . strlen(json_encode($data)) ], )); $response = curl_exec($curl); if ($response === false) { echo 'Curl error: ' . curl_error($curl); return null; } curl_close($curl); return json_decode($response); } function createSepalTransaction($apiKey, $amount, $callbackUrl, $invoiceNumber) { $url = 'https://sepal.ir/api/sandbox/request.json'; $payload = [ 'apiKey' => $apiKey, 'amount' => intval($amount), 'callbackUrl' => $callbackUrl, 'invoiceNumber' => $invoiceNumber ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); $response = curl_exec($ch); curl_close($ch); $result = json_decode($response, true); if (isset($result['status']) && $result['status'] === true) { return $result['paymentNumber']; } else { return false; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply