This commit is contained in:
2025-09-25 15:28:35 +05:00
parent f5de6b0a58
commit b6bfcfcdd8
5 changed files with 26 additions and 29 deletions

View File

@@ -3,7 +3,6 @@
use App\Models\Auth\Verification;
use App\Models\Ecommerce\Channel\Channel;
use App\Models\Ecommerce\Product\Inventory\Inventory;
use App\Models\System\Settings\Settings;
use App\Repositories\Ecommerce\Product\Barcode\BarcodeRepository;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Support\Collection;
@@ -355,7 +354,7 @@ if (! function_exists('calculateProductPriceAmount')) {
*/
function halkbankCredentials(string $key = ''): int|string|array
{
return match($key) {
return match ($key) {
'username' => 516122500260,
'password' => 'MrZsO9wfgWOBjf4',
default => [

View File

@@ -47,14 +47,14 @@ class OrderController extends Controller
$url = $response['url'];
$order->update([
'halkbank_id' => $response['orderId']
'halkbank_id' => $response['orderId'],
]);
}
}
return response()->rest([
'order_id' => $order->id,
'payment_url' => $url
'payment_url' => $url,
], 201);
}

View File

@@ -12,7 +12,7 @@ class OnlinePaymentController extends Controller
public function index(Request $request)
{
$request->validate([
'orderId' => ['required', 'string']
'orderId' => ['required', 'string'],
]);
$resource = Order::query()->where('halkbank_id', $request->orderId)->first();
@@ -46,7 +46,7 @@ class OnlinePaymentController extends Controller
}
public function view(
$status = false,
$status,
$message,
string $pnr = '-',
string $branch_name = 'MM.COM.TM',

View File

@@ -33,8 +33,6 @@ class TestController extends Controller
public function ok()
{
if (! app()->isProduction()) {
auth()->login(User::where('email', 'nurmuhammet@mail.com')->first());