restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
use App\Models\Billing;
use App\Models\Order;
use App\Api\Sms;
$billing = Billing::find($transaction->transactionable_id);
$billing->status = 'payed';
$billing->transaction_id = $transaction->system_transaction_id;
$billing->save();
$sms = new Sms();
$order = Order::find($billing->order_id);
$order->payment_status = 'payed';
$order->save();
$message = "Quyoshli vash zakaz: {$order->id} uspeshno oplachen!";
$sms->send($order->user->phone, $message);

View File

@@ -0,0 +1,8 @@
<?php
use App\Models\Order;
$order_id = $model->order_id;
Order::query()->where('id', $order_id)->update([
'payment_status' => "waiting"
]);

View File

@@ -0,0 +1,2 @@
<?php
return $response;

View File

@@ -0,0 +1,19 @@
<?php
use App\Api\Sms;
use App\Models\Billing;
use App\Models\Order;
$billing = Billing::find($transaction->transactionable_id);
$billing->status = 'refused';
$billing->save();
$sms = new Sms();
$order = Order::find($billing->order_id);
$order->status = 'cancelled';
$order->payment_status = 'cancelled';
$order->save();
$message = "Quyoshli vash zakaz: {$order->id} otmenen!";
$sms->send($order->user->phone, $message);

View File

@@ -0,0 +1,10 @@
<?php
if ($model->payment_system == 'payme') {
$amount = $amount / 100;
}
if ($model->amount == $amount) {
return true;
}
return false;

View File

@@ -0,0 +1,13 @@
<?php
$id = (int) $key;
$billing = \App\Models\Billing::find($id);
if (!empty($billing)) {
if ($billing->status == 'waiting') {
return $billing;
}
}
return null;

View File

@@ -0,0 +1,3 @@
<?php
return $model->id;

View File

@@ -0,0 +1 @@
<?php