This commit is contained in:
2025-11-02 18:19:25 +05:00
parent 90b5a6bd6f
commit 910a7dd1b2
5 changed files with 119 additions and 99 deletions

View File

@@ -3,7 +3,6 @@
namespace App\Modules\HalkbankOnlinePayment\Controllers;
use App\Http\Controllers\Controller;
use App\Modules\CardOrder\Models\CardOrder;
use App\Modules\HalkbankOnlinePayment\Repositories\HalkbankOnlinePaymentRepository;
use App\Modules\OnlinePayment\Repositories\OnlinePaymentRepository;
use Illuminate\Contracts\View\View;
@@ -22,13 +21,6 @@ class HalkbankOnlinePaymentController extends Controller
$paymentStatus = $onlinePaymentRepository->checkPayment($request->string('orderId'));
return $onlinePaymentRepository->paymentStatusView([
'success' => $paymentStatus['success'],
'title' => __('Payment has failed'),
'pnr' => $paymentStatus['paymentHistory']->orderNumber,
'branch_name' => $paymentStatus['bank_branch']->name,
'price_amount' => $paymentStatus['paymentHistory']->amount.' TMT',
'return_url' => $paymentStatus['return_url'],
]);
return $onlinePaymentRepository->paymentStatusView($paymentStatus);
}
}