wip
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
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;
|
||||
@@ -16,7 +17,7 @@ class HalkbankOnlinePaymentController extends Controller
|
||||
'orderId' => ['required', 'string', 'max:50', 'exists:online_payments,orderId'],
|
||||
]);
|
||||
|
||||
$onlinePaymentRepository = OnlinePaymentRepository::make()
|
||||
$onlinePaymentRepository = OnlinePaymentRepository::make(CardOrder::class)
|
||||
->paymentProvider(new HalkbankOnlinePaymentRepository);
|
||||
|
||||
$paymentStatus = $onlinePaymentRepository->checkPayment($request->string('orderId'));
|
||||
|
||||
Reference in New Issue
Block a user