Files
online.tbbank.gov.tm-larave…/app/Http/Controllers/OnlinePaymentController.php
2026-03-13 14:48:03 +05:00

41 lines
988 B
PHP

<?php
namespace App\Http\Controllers;
use App\Http\Requests\OnlinePaymentStoreRequest;
use App\Repos\Payment\OnlinePaymentRepo;
use Illuminate\Contracts\View\View;
class OnlinePaymentController extends Controller
{
/**
* Card online payment
*/
public function store(OnlinePaymentStoreRequest $request): View
{
$data = OnlinePaymentRepo::checkCardOrderPayment($request);
return view(OnlinePaymentRepo::statusView(), $data);
}
/**
* Visa-master online payment
*/
public function visaMaster(OnlinePaymentStoreRequest $request): View
{
$data = OnlinePaymentRepo::checkPaymentVisaMaster($request);
return view(OnlinePaymentRepo::statusView(), $data);
}
/**
* Sber online payment
*/
public function sber(OnlinePaymentStoreRequest $request): View
{
$data = OnlinePaymentRepo::checkPaymentSber($request);
return view(OnlinePaymentRepo::statusView(), $data);
}
}