<?php

declare(strict_types=1);


use Illuminate\Support\Facades\Route;
use Plugins\Neatstudio\Payment\Http\PaymentController;

Route::get('/pay/checkout/{payment}', [PaymentController::class, 'checkout'])->name('pay.checkout');
Route::get('/pay/sandbox/{orderNo}', [PaymentController::class, 'sandbox'])->name('pay.sandbox');
Route::post('/pay/sandbox/{orderNo}/confirm', [PaymentController::class, 'sandboxConfirm'])->name('pay.sandbox.confirm');
Route::get('/pay/result/{orderNo}', [PaymentController::class, 'result'])->name('pay.result');
Route::match(['get', 'post'], '/pay/notify/{channel}', [PaymentController::class, 'notify'])->name('pay.notify')->withoutMiddleware('csrf');
Route::get('/pay/return/{channel}', [PaymentController::class, 'return'])->name('pay.return');
